lkml.org 
[lkml]   [2019]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] scsi: megaraid_sas: Reporting evt_detail->code in megasas_decode_evt
Date
When printing a megasas_decode_evt() message, the code member of the evt_detail is not reported.
This make the debugging more complicated as some code paths depends on this value.

Reporting the code member makes the context more explicit.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
---
drivers/scsi/megaraid/megaraid_sas_base.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 293f5cf524d7..222166c659bb 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -392,8 +392,9 @@ megasas_decode_evt(struct megasas_instance *instance)
class_locale.word = le32_to_cpu(evt_detail->cl.word);

if (class_locale.members.class >= MFI_EVT_CLASS_CRITICAL)
- dev_info(&instance->pdev->dev, "%d (%s/0x%04x/%s) - %s\n",
+ dev_info(&instance->pdev->dev, "%d code:%d (%s/0x%04x/%s) - %s\n",
le32_to_cpu(evt_detail->seq_num),
+ le32_to_cpu(instance->evt_detail->code),
format_timestamp(le32_to_cpu(evt_detail->time_stamp)),
(class_locale.members.locale),
format_class(class_locale.members.class),
--
2.21.0
\
 
 \ /
  Last update: 2019-04-09 17:24    [W:0.024 / U:3.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site