diff mbox series

[3/4] rasdaemon: remove redundant header file and do some cleaup

Message ID 20230512094129.1468-4-shiju.jose@huawei.com (mailing list archive)
State New, archived
Headers show
Series rasdaemon: Fix return value type issue, some clean-up and add handling of run-time errors in ras-mc-ctl.in | expand

Commit Message

Shiju Jose May 12, 2023, 9:41 a.m. UTC
From: Xiaofei Tan <tanxiaofei@huawei.com>

1.Remove redundant header file and adjust the header files sequence.
2.Use right character format for printf.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
---
 non-standard-hisilicon.c     | 4 ++--
 ras-memory-failure-handler.c | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/non-standard-hisilicon.c b/non-standard-hisilicon.c
index 9873919..721821e 100644
--- a/non-standard-hisilicon.c
+++ b/non-standard-hisilicon.c
@@ -370,9 +370,9 @@  static int decode_hisi_common_section(struct ras_events *ras,
 
 		trace_seq_printf(s, "Register Dump:\n");
 		for (i = 0; i < err->reg_array_size / sizeof(uint32_t); i++) {
-			trace_seq_printf(s, "reg%02d=0x%08x\n", i,
+			trace_seq_printf(s, "reg%02u=0x%08x\n", i,
 					 err->reg_array[i]);
-			HISI_SNPRINTF(hevent.reg_msg, "reg%02d=0x%08x",
+			HISI_SNPRINTF(hevent.reg_msg, "reg%02u=0x%08x",
 				      i, err->reg_array[i]);
 		}
 	}
diff --git a/ras-memory-failure-handler.c b/ras-memory-failure-handler.c
index 85a8633..c74541f 100644
--- a/ras-memory-failure-handler.c
+++ b/ras-memory-failure-handler.c
@@ -15,11 +15,10 @@ 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <traceevent/kbuffer.h>
-#include "ras-memory-failure-handler.h"
 #include "ras-record.h"
 #include "ras-logger.h"
 #include "ras-report.h"
+#include "ras-memory-failure-handler.h"
 
 /* Memory failure - various types of pages */
 enum mf_action_page_type {