mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
[scsi] Fix DBG() message reporting of error number
This commit is contained in:
@@ -60,8 +60,8 @@ static int scsi_command ( struct scsi_device *scsi,
|
|||||||
/* Something went wrong with the issuing mechanism,
|
/* Something went wrong with the issuing mechanism,
|
||||||
* (rather than with the command itself)
|
* (rather than with the command itself)
|
||||||
*/
|
*/
|
||||||
DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %d\n",
|
DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %s\n",
|
||||||
scsi, SCSI_CDB_DATA ( command->cdb ), rc );
|
scsi, SCSI_CDB_DATA ( command->cdb ), strerror ( rc ) );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user