From a51eafa90d8efaac3b0911bddc69780859bb23f8 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Tue, 30 Jan 2024 19:47:28 +0100 Subject: [PATCH] Previously, 'task->status' was printed as decimal. In iscsi.h, the values that are put into it are defined as hexadecimal. This is a bit confusing (grepping through the code for 251658241 did not result in anything while the hex variant f000001 resulted in SCSI_STATUS_ERROR). --- test-tool/iscsi-support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/iscsi-support.c b/test-tool/iscsi-support.c index 0a36ddb..b89e7a0 100644 --- a/test-tool/iscsi-support.c +++ b/test-tool/iscsi-support.c @@ -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) { 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, scsi_sense_key_str(task->sense.key), task->sense.key, scsi_sense_ascq_str(task->sense.ascq), task->sense.ascq);