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
This commit is contained in:
Zdenek Styblik 2013-07-17 10:30:23 +00:00
parent 3bd53a2f78
commit 22e38bc46f

View File

@ -2270,6 +2270,7 @@ static int HpmFwupgActionUploadFirmware
if(!skip)
{
HpmDisplayUpgrade(0,0,1,0);
/* Initialize parameters */
uploadCmd.req.blockNumber = 0;