diff options
author | Moger, Babu <Babu.Moger@netapp.com> | 2012-07-27 13:28:40 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-14 06:58:53 -0400 |
commit | f1ba8a4fe59b21a6988ad5999e74e9907b142ee3 (patch) | |
tree | 99e19c41655608a3f062799736b8fcc5e0e1744c /drivers/scsi/constants.c | |
parent | 088ba34c92055547ef4cc862a863334c01d9a304 (diff) |
[SCSI] add DID_TARGET_FAILURE and DID_NEXUS_FAILURE to hostbyte_table in constants.c
Without this patch, scsi_show_result prints hostbyte as invalid for statuses
that are not defined in hostbyte_table (when scsi logging is enabled).
Signed-off-by: Babu Moger <babu.moger@netapp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/constants.c')
-rw-r--r-- | drivers/scsi/constants.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index 450e011f981a..76e4c039f0d5 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c | |||
@@ -1422,7 +1422,8 @@ static const char * const hostbyte_table[]={ | |||
1422 | "DID_OK", "DID_NO_CONNECT", "DID_BUS_BUSY", "DID_TIME_OUT", "DID_BAD_TARGET", | 1422 | "DID_OK", "DID_NO_CONNECT", "DID_BUS_BUSY", "DID_TIME_OUT", "DID_BAD_TARGET", |
1423 | "DID_ABORT", "DID_PARITY", "DID_ERROR", "DID_RESET", "DID_BAD_INTR", | 1423 | "DID_ABORT", "DID_PARITY", "DID_ERROR", "DID_RESET", "DID_BAD_INTR", |
1424 | "DID_PASSTHROUGH", "DID_SOFT_ERROR", "DID_IMM_RETRY", "DID_REQUEUE", | 1424 | "DID_PASSTHROUGH", "DID_SOFT_ERROR", "DID_IMM_RETRY", "DID_REQUEUE", |
1425 | "DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST" }; | 1425 | "DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST", "DID_TARGET_FAILURE", |
1426 | "DID_NEXUS_FAILURE" }; | ||
1426 | #define NUM_HOSTBYTE_STRS ARRAY_SIZE(hostbyte_table) | 1427 | #define NUM_HOSTBYTE_STRS ARRAY_SIZE(hostbyte_table) |
1427 | 1428 | ||
1428 | static const char * const driverbyte_table[]={ | 1429 | static const char * const driverbyte_table[]={ |