[scsi] Fix DBG() message reporting of error number
authorMichael Brown <mcb30@etherboot.org>
Thu, 19 Feb 2009 10:37:30 +0000 (10:37 +0000)
committerMichael Brown <mcb30@etherboot.org>
Thu, 19 Feb 2009 10:37:30 +0000 (10:37 +0000)
src/drivers/block/scsi.c

index 71d2204..b22bd20 100644 (file)
@@ -60,8 +60,8 @@ static int scsi_command ( struct scsi_device *scsi,
                /* Something went wrong with the issuing mechanism,
                 * (rather than with the command itself)
                 */
-               DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %d\n",
-                     scsi, SCSI_CDB_DATA ( command->cdb ), rc );
+               DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %s\n",
+                     scsi, SCSI_CDB_DATA ( command->cdb ), strerror ( rc ) );
                return rc;
        }