projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a9df81
)
scsi: core: Add DID_ALLOC_FAILURE and DID_MEDIUM_ERROR to hostbyte_table
author
Nikhil Kshirsagar
<nkshirsa@redhat.com>
Wed, 1 Apr 2020 03:55:00 +0000
(09:25 +0530)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 2 Apr 2020 02:03:04 +0000
(22:03 -0400)
Since DID_ALLOC_FAILURE and DID_MEDIUM_ERROR are missing from the
hostbyte_table, scsi debug logging prints their numeric values only.
Adding them to the hostbyte_table to allow the scsi debug log to print
those as strings.
Link:
https://lore.kernel.org/r/CAMNNMLFtQOHsjWUMs+q_+z9XqQYZmR34ewoB-5LrCpzGp1Ppkw@mail.gmail.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nikhil Kshirsagar <nkshirsa@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/constants.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/constants.c
b/drivers/scsi/constants.c
index d4c2a2e4c5d4415e86fa049e36fab7a8940ea6d0..84d73f57292bc87c49a8d3e7cf1c63cce1a54b52 100644
(file)
--- a/
drivers/scsi/constants.c
+++ b/
drivers/scsi/constants.c
@@
-404,7
+404,7
@@
static const char * const hostbyte_table[]={
"DID_ABORT", "DID_PARITY", "DID_ERROR", "DID_RESET", "DID_BAD_INTR",
"DID_PASSTHROUGH", "DID_SOFT_ERROR", "DID_IMM_RETRY", "DID_REQUEUE",
"DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST", "DID_TARGET_FAILURE",
-"DID_NEXUS_FAILURE" };
+"DID_NEXUS_FAILURE"
, "DID_ALLOC_FAILURE", "DID_MEDIUM_ERROR"
};
static const char * const driverbyte_table[]={
"DRIVER_OK", "DRIVER_BUSY", "DRIVER_SOFT", "DRIVER_MEDIA", "DRIVER_ERROR",