avoid lprintf to control \n generation

This commit is contained in:
Francois Isabelle 2007-01-11 19:35:29 +00:00
parent 77b47d3751
commit 7acd1310ec

View File

@ -132,7 +132,7 @@ extern int verbose;
* will be removed once a new Open IPMI driver is released. * will be removed once a new Open IPMI driver is released.
* (Buggy version = 39) * (Buggy version = 39)
*/ */
#undef ENABLE_OPENIPMI_V39_PATCH #define ENABLE_OPENIPMI_V39_PATCH
#ifdef ENABLE_OPENIPMI_V39_PATCH #ifdef ENABLE_OPENIPMI_V39_PATCH
@ -1134,7 +1134,8 @@ int HpmfwupgUpgradeStage(struct ipmi_intf *intf, struct HpmfwupgUpgradeCtx* pFwu
{ {
uploadCmd.req.blockNumber++; uploadCmd.req.blockNumber++;
pData += count; pData += count;
lprintf(LOG_NOTICE," Writing firmware: %.0f %c completed\r", /* avoid lprintf to control \n generation */
printf(" Writing firmware: %.0f %c completed\r",
(float)totalSent/firmwareLength*100, '%'); (float)totalSent/firmwareLength*100, '%');
fflush(stdout); fflush(stdout);
} }