aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2016-10-11 18:51:20 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-17 10:33:58 +1100
commitb0f1134d467bdf0f8799c9f31452142c51065bca (patch)
tree62f74e05afbf0e970f376251255a8482d5b2aa26
parent2e19de4c2f4b47f0259ba265ea7d1786f1b44cd7 (diff)
downloadskiboot-b0f1134d467bdf0f8799c9f31452142c51065bca.zip
skiboot-b0f1134d467bdf0f8799c9f31452142c51065bca.tar.gz
skiboot-b0f1134d467bdf0f8799c9f31452142c51065bca.tar.bz2
external/pflash: Fix ccpcheck warnings in progress.c
Warnings in progress.c are not critical but warn about %d being used in printf format string when the parameter passed is unsigned. Trivial fixup which should silence the warnings. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--external/pflash/progress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/external/pflash/progress.c b/external/pflash/progress.c
index 1f98502..4012020 100644
--- a/external/pflash/progress.c
+++ b/external/pflash/progress.c
@@ -46,7 +46,7 @@ void progress_tick(unsigned long cur)
printf("=");
for (; i < PROGRESS_CHARS; i++)
printf(" ");
- printf("] %d%%", pcent);
+ printf("] %u%%", pcent);
sec = now.tv_sec - progress_start.tv_sec;
if (sec >= 5 && pcent > 0) {
@@ -61,9 +61,9 @@ void progress_tick(unsigned long cur)
rem_sec = progress_prevsec;
progress_prevsec = rem_sec;
if (rem_sec < 60)
- printf(" ETA:%ds ", rem_sec);
+ printf(" ETA:%us ", rem_sec);
else {
- printf(" ETA:%d:%02d:%02d ",
+ printf(" ETA:%u:%02d:%02u ",
rem_sec / 3600,
(rem_sec / 60) % 60,
rem_sec % 60);