discover/platform-powerpc: Zero-pad BMC aux-version
[petitboot] / discover / platform-powerpc.c
index b426df644a51452a379fe8ec1735634c844f3518..19613045f60a4d94e592a07c98a120a0e1a39bd4 100644 (file)
@@ -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);