Changeset 7cfe5c0 in mainline for uspace/drv/bus/usb/usbmast/scsi_ms.c


Ignore:
Timestamp:
2012-08-20T19:16:24Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b99156
Parents:
b9cb911 (diff), 01e397ac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged with mainline 0.5.0 changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/scsi_ms.c

    rb9cb911 r7cfe5c0  
    8888                if (rc != EOK) {
    8989                        usb_log_error("Inquiry transport failed, device %s: %s.\n",
    90                            mfun->mdev->ddf_dev->name, str_error(rc));
     90                           ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    9191                        return rc;
    9292                }
     
    9696
    9797                usb_log_error("SCSI command failed, device %s.\n",
    98                     mfun->mdev->ddf_dev->name);
     98                    ddf_dev_get_name(mfun->mdev->ddf_dev));
    9999
    100100                rc = usbmast_request_sense(mfun, &sense_buf, sizeof(sense_buf));
     
    147147        if (rc != EOK) {
    148148                usb_log_error("Inquiry transport failed, device %s: %s.\n",
    149                    mfun->mdev->ddf_dev->name, str_error(rc));
     149                   ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    150150                return rc;
    151151        }
     
    153153        if (cmd.status != CMDS_GOOD) {
    154154                usb_log_error("Inquiry command failed, device %s.\n",
    155                    mfun->mdev->ddf_dev->name);
     155                   ddf_dev_get_name(mfun->mdev->ddf_dev));
    156156                return EIO;
    157157        }
     
    215215        if (rc != EOK || cmd.status != CMDS_GOOD) {
    216216                usb_log_error("Request Sense failed, device %s: %s.\n",
    217                    mfun->mdev->ddf_dev->name, str_error(rc));
     217                   ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    218218                return rc;
    219219        }
     
    257257        if (rc != EOK) {
    258258                usb_log_error("Read Capacity (10) transport failed, device %s: %s.\n",
    259                    mfun->mdev->ddf_dev->name, str_error(rc));
     259                   ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    260260                return rc;
    261261        }
     
    263263        if (cmd.status != CMDS_GOOD) {
    264264                usb_log_error("Read Capacity (10) command failed, device %s.\n",
    265                    mfun->mdev->ddf_dev->name);
     265                   ddf_dev_get_name(mfun->mdev->ddf_dev));
    266266                return EIO;
    267267        }
     
    314314        if (rc != EOK) {
    315315                usb_log_error("Read (10) transport failed, device %s: %s.\n",
    316                    mfun->mdev->ddf_dev->name, str_error(rc));
     316                   ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    317317                return rc;
    318318        }
     
    320320        if (cmd.status != CMDS_GOOD) {
    321321                usb_log_error("Read (10) command failed, device %s.\n",
    322                    mfun->mdev->ddf_dev->name);
     322                   ddf_dev_get_name(mfun->mdev->ddf_dev));
    323323                return EIO;
    324324        }
     
    370370        if (rc != EOK) {
    371371                usb_log_error("Write (10) transport failed, device %s: %s.\n",
    372                    mfun->mdev->ddf_dev->name, str_error(rc));
     372                   ddf_dev_get_name(mfun->mdev->ddf_dev), str_error(rc));
    373373                return rc;
    374374        }
     
    376376        if (cmd.status != CMDS_GOOD) {
    377377                usb_log_error("Write (10) command failed, device %s.\n",
    378                    mfun->mdev->ddf_dev->name);
     378                   ddf_dev_get_name(mfun->mdev->ddf_dev));
    379379                return EIO;
    380380        }
Note: See TracChangeset for help on using the changeset viewer.