From 22e38bc46f9d0e0f11f494bb5549bf5e6b905ee2 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Wed, 17 Jul 2013 10:30:23 +0000 Subject: [PATCH] ID: 70 - Fixes and updates for ipmitool hpm Fixed a bug where the rolling percentage display could corrupt the version line if the first call to HpmDisplayUpgrade resulted in a non-zero percentage. This was produced by performing: ipmitool hpm upgrade hpm1fru.img where hpm1fru.img is a small (820 byte) file. We now call HpmDisplayUpgrade before we transfer any data to ensure that we get 0% printed before the transfer starts. Commit for Dan Gora --- ipmitool/lib/ipmi_hpmfwupg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ipmitool/lib/ipmi_hpmfwupg.c b/ipmitool/lib/ipmi_hpmfwupg.c index c947672..eee72cb 100644 --- a/ipmitool/lib/ipmi_hpmfwupg.c +++ b/ipmitool/lib/ipmi_hpmfwupg.c @@ -2270,6 +2270,7 @@ static int HpmFwupgActionUploadFirmware if(!skip) { + HpmDisplayUpgrade(0,0,1,0); /* Initialize parameters */ uploadCmd.req.blockNumber = 0;