From 6b5eb1008e593d7cadbc4165ee6978d8d2ff4f76 Mon Sep 17 00:00:00 2001
From: Lee Duncan <lduncan@suse.com>
Date: Thu, 12 Apr 2018 18:17:00 -0700
Subject: [PATCH 1/1] Add error message for new ISCSI_ERR_NOP_TIMEDOUT
This new error enum was added with commit 5c654fcc617a,
but it needs to be added to kern_err_table as well.
---
usr/kern_err_table.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr/kern_err_table.c b/usr/kern_err_table.c
index a6ea8fb..8af6f05 100644
--- a/usr/kern_err_table.c
+++ b/usr/kern_err_table.c
@@ -77,6 +77,8 @@ const char *kern_err_code_to_string(int err)
case ISCSI_ERR_SCSI_EH_SESSION_RST:
return "ISCSI_ERR_SCSI_EH_SESSION_RST: Session was dropped as "
"a result of SCSI error recovery";
+ case ISCSI_ERR_NOP_TIMEDOUT:
+ return "ISCSI_ERR_NOP_TIMEDOUT: A NOP has timed out";
default:
return "Invalid or unknown error code";
}
--
2.21.0