2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-25 04:31:45 +00:00

[scsi] Fix DBG() message reporting of error number

This commit is contained in:
Michael Brown 2009-02-19 10:37:30 +00:00
parent 9937bf13c9
commit 78d426d196

View 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;
}