summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/drivers/block/scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/block/scsi.c b/src/drivers/block/scsi.c
index 71d22040..b22bd20f 100644
--- a/src/drivers/block/scsi.c
+++ b/src/drivers/block/scsi.c
@@ -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;
}