Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[scsi] Fix DBG() message reporting of error number
  • Loading branch information
Michael Brown committed Feb 19, 2009
1 parent 9937bf1 commit 78d426d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/block/scsi.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 78d426d

Please sign in to comment.