Browse Source

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

tags/v0.9.7
Michael Brown 16 years ago
parent
commit
78d426d196
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/drivers/block/scsi.c

+ 2
- 2
src/drivers/block/scsi.c View File

60
 		/* Something went wrong with the issuing mechanism,
60
 		/* Something went wrong with the issuing mechanism,
61
 		 * (rather than with the command itself)
61
 		 * (rather than with the command itself)
62
 		 */
62
 		 */
63
-		DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %d\n",
64
-		      scsi, SCSI_CDB_DATA ( command->cdb ), rc );
63
+		DBG ( "SCSI %p " SCSI_CDB_FORMAT " err %s\n",
64
+		      scsi, SCSI_CDB_DATA ( command->cdb ), strerror ( rc ) );
65
 		return rc;
65
 		return rc;
66
 	}
66
 	}
67
 
67
 

Loading…
Cancel
Save