aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-09-15 17:33:26 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-15 17:33:26 +1000
commit86640b032d79ff08b01888731e43e3187c3e92b2 (patch)
tree99d014a1b3535dd9e6bf8be988461599b157cc44 /external
parentde71e5925693f29cb3b086055c7d68b4ccba1dde (diff)
downloadskiboot-86640b032d79ff08b01888731e43e3187c3e92b2.zip
skiboot-86640b032d79ff08b01888731e43e3187c3e92b2.tar.gz
skiboot-86640b032d79ff08b01888731e43e3187c3e92b2.tar.bz2
pflash: Fix printf format warning
pflash.c: In function ‘print_flash_info’: pflash.c:138:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] printf("Total size = %dMB \n", fl_total_size >> 20); Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/pflash/pflash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/external/pflash/pflash.c b/external/pflash/pflash.c
index 8570acd..a036a86 100644
--- a/external/pflash/pflash.c
+++ b/external/pflash/pflash.c
@@ -29,6 +29,7 @@
#include <limits.h>
#include <arpa/inet.h>
#include <assert.h>
+#include <inttypes.h>
#include <libflash/libflash.h>
#include <libflash/libffs.h>
@@ -135,7 +136,7 @@ static void print_flash_info(uint32_t toc)
printf("Flash info:\n");
printf("-----------\n");
printf("Name = %s\n", fl_name);
- printf("Total size = %dMB \n", fl_total_size >> 20);
+ printf("Total size = %"PRIu64"dMB \n", fl_total_size >> 20);
printf("Erase granule = %dKB \n", fl_erase_granule >> 10);
if (bmc_flash)