Bläddra i källkod

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

tags/v0.9.7
Michael Brown 16 år sedan
förälder
incheckning
78d426d196
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      src/drivers/block/scsi.c

+ 2
- 2
src/drivers/block/scsi.c Visa fil

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
 

Laddar…
Avbryt
Spara