summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2009-02-19 11:37:30 +0100
committerMichael Brown2009-02-19 11:37:30 +0100
commit78d426d19695982162056e14d83ffb075a86073b (patch)
tree64634df1d4cb9830398387057711a3aa2bb91d61
parent[crypto] Allow creation of arbitrary CBC cipher algorithms using CBC_CIPHER() (diff)
downloadipxe-78d426d19695982162056e14d83ffb075a86073b.tar.gz
ipxe-78d426d19695982162056e14d83ffb075a86073b.tar.xz
ipxe-78d426d19695982162056e14d83ffb075a86073b.zip
[scsi] Fix DBG() message reporting of error number
-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;
}