Merge pull request #411 from folkertvanheusden/task-status
print task-status in hex
This commit is contained in:
@@ -202,7 +202,7 @@ static int check_result(const char *opcode, struct scsi_device *sdev,
|
|||||||
}
|
}
|
||||||
if (status == SCSI_STATUS_GOOD && task->status != SCSI_STATUS_GOOD) {
|
if (status == SCSI_STATUS_GOOD && task->status != SCSI_STATUS_GOOD) {
|
||||||
logging(LOG_NORMAL,
|
logging(LOG_NORMAL,
|
||||||
"[FAILED] %s command failed with status %d / sense key %s(0x%02x) / ASCQ %s(0x%04x)",
|
"[FAILED] %s command failed with status 0x%x / sense key %s(0x%02x) / ASCQ %s(0x%04x)",
|
||||||
opcode, task->status,
|
opcode, task->status,
|
||||||
scsi_sense_key_str(task->sense.key), task->sense.key,
|
scsi_sense_key_str(task->sense.key), task->sense.key,
|
||||||
scsi_sense_ascq_str(task->sense.ascq), task->sense.ascq);
|
scsi_sense_ascq_str(task->sense.ascq), task->sense.ascq);
|
||||||
|
|||||||
Reference in New Issue
Block a user