From: Michael Brown Date: Thu, 19 Feb 2009 10:37:30 +0000 (+0000) Subject: [scsi] Fix DBG() message reporting of error number X-Git-Tag: v0.9.7~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d426d19695982162056e14d83ffb075a86073b;p=thirdparty%2Fipxe.git [scsi] Fix DBG() message reporting of error number --- diff --git a/src/drivers/block/scsi.c b/src/drivers/block/scsi.c index 71d22040f..b22bd20f4 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; }