Blame SOURCES/0001-dmidecode-Fix-Redfish-Hostname-print-length.patch
|
|
e0d5ce |
From fde47bb227b8fa817c88d7e10a8eb771c46de1df Mon Sep 17 00:00:00 2001
|
|
|
e0d5ce |
From: Charles Rose <Charles.Rose@dell.com>
|
|
|
e0d5ce |
Date: Mon, 22 Oct 2018 09:48:02 +0200
|
|
|
e0d5ce |
Subject: [PATCH 1/5] dmidecode: Fix Redfish Hostname print length
|
|
|
e0d5ce |
|
|
|
e0d5ce |
Redfish Hostname prints beyond hlen characters. Fix it.
|
|
|
e0d5ce |
|
|
|
e0d5ce |
Signed-off-by: Charles Rose <charles.rose@dell.com>
|
|
|
e0d5ce |
Fixes: 78539b06117c ("dmidecode: Parse Modern Management Controller blocks")
|
|
|
e0d5ce |
Acked-by: Neil Horman <nhorman@tuxdriver.com>
|
|
|
e0d5ce |
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
e0d5ce |
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
|
|
|
e0d5ce |
---
|
|
|
e0d5ce |
dmidecode.c | 2 +-
|
|
|
e0d5ce |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
e0d5ce |
|
|
|
e0d5ce |
diff --git a/dmidecode.c b/dmidecode.c
|
|
|
e0d5ce |
index a3e9d6c16bc2..7ac6438a23db 100644
|
|
|
e0d5ce |
--- a/dmidecode.c
|
|
|
e0d5ce |
+++ b/dmidecode.c
|
|
|
e0d5ce |
@@ -3609,7 +3609,7 @@ static void dmi_parse_protocol_record(const char *prefix, u8 *rec)
|
|
|
e0d5ce |
hname = out_of_spec;
|
|
|
e0d5ce |
hlen = strlen(out_of_spec);
|
|
|
e0d5ce |
}
|
|
|
e0d5ce |
- printf("%s\t\tRedfish Service Hostname: %*s\n", prefix, hlen, hname);
|
|
|
e0d5ce |
+ printf("%s\t\tRedfish Service Hostname: %.*s\n", prefix, hlen, hname);
|
|
|
e0d5ce |
}
|
|
|
e0d5ce |
|
|
|
e0d5ce |
/*
|
|
|
e0d5ce |
--
|
|
|
e0d5ce |
2.17.1
|
|
|
e0d5ce |
|