summaryrefslogtreecommitdiffstats
path: root/discover/platform-powerpc.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-22 11:43:15 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-26 12:57:24 +1000
commit7b7c45a42d9a46e15109f1cbab460e0b97c53f57 (patch)
tree0cb5081b0c061ae95aece0bac4a994f81cf68f63 /discover/platform-powerpc.c
parentc5cbcf4b6a2ee7dafba8d29d52071752f3022ebb (diff)
downloadtalos-petitboot-7b7c45a42d9a46e15109f1cbab460e0b97c53f57.tar.gz
talos-petitboot-7b7c45a42d9a46e15109f1cbab460e0b97c53f57.zip
discover/platform-powerpc: Zero-pad BMC aux-versionv1.0.1
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/platform-powerpc.c')
-rw-r--r--discover/platform-powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index b426df6..1961304 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -1066,7 +1066,7 @@ static void get_ipmi_bmc_versions(struct platform *p, struct system_info *info)
bcd += 10 * (resp[4] >> 4);
memcpy(&aux_version, &resp[12], sizeof(aux_version));
info->bmc_current[2] = talloc_asprintf(info,
- "Firmware version: %u.%02u.%u",
+ "Firmware version: %u.%02u.%05u",
resp[3], bcd, aux_version);
bcd = resp[5] & 0x0f;
bcd += 10 * (resp[5] >> 4);
OpenPOWER on IntegriCloud