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