48d35dd3e4
Signed-off-by: Anton Arapov <arapov@gmail.com>
32 lines
991 B
Diff
32 lines
991 B
Diff
From fde47bb227b8fa817c88d7e10a8eb771c46de1df Mon Sep 17 00:00:00 2001
|
|
From: Charles Rose <Charles.Rose@dell.com>
|
|
Date: Mon, 22 Oct 2018 09:48:02 +0200
|
|
Subject: [PATCH 01/18] dmidecode: Fix Redfish Hostname print length
|
|
|
|
Redfish Hostname prints beyond hlen characters. Fix it.
|
|
|
|
Signed-off-by: Charles Rose <charles.rose@dell.com>
|
|
Fixes: 78539b06117c ("dmidecode: Parse Modern Management Controller blocks")
|
|
Acked-by: Neil Horman <nhorman@tuxdriver.com>
|
|
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
---
|
|
dmidecode.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/dmidecode.c b/dmidecode.c
|
|
index a3e9d6c..7ac6438 100644
|
|
--- a/dmidecode.c
|
|
+++ b/dmidecode.c
|
|
@@ -3609,7 +3609,7 @@ static void dmi_parse_protocol_record(const char *prefix, u8 *rec)
|
|
hname = out_of_spec;
|
|
hlen = strlen(out_of_spec);
|
|
}
|
|
- printf("%s\t\tRedfish Service Hostname: %*s\n", prefix, hlen, hname);
|
|
+ printf("%s\t\tRedfish Service Hostname: %.*s\n", prefix, hlen, hname);
|
|
}
|
|
|
|
/*
|
|
--
|
|
2.24.0
|
|
|