Pārlūkot izejas kodu

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

tags/v0.9.7
Michael Brown 16 gadus atpakaļ
vecāks
revīzija
78d426d196
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      src/drivers/block/scsi.c

+ 2
- 2
src/drivers/block/scsi.c Parādīt failu

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
 

Notiek ielāde…
Atcelt
Saglabāt