diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2017-01-06 06:35:16 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-10 14:17:43 +1100 |
commit | dbef62681ee0b3abde763c0035414f0e32899a18 (patch) | |
tree | 4bb0711b4c8cfe5f42a76dfc57094a5e1d88f434 /libflash | |
parent | 8993ea78c27e6ebf5ac503cb23ed9b39abfc3490 (diff) | |
download | skiboot-dbef62681ee0b3abde763c0035414f0e32899a18.zip skiboot-dbef62681ee0b3abde763c0035414f0e32899a18.tar.gz skiboot-dbef62681ee0b3abde763c0035414f0e32899a18.tar.bz2 |
libflash: fix integer type in printf
A format string had a 0x prefix on an integer but printed in decimal.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r-- | libflash/blocklevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/blocklevel.c b/libflash/blocklevel.c index c18de1f..79ff00f 100644 --- a/libflash/blocklevel.c +++ b/libflash/blocklevel.c @@ -199,7 +199,7 @@ int blocklevel_erase(struct blocklevel_device *bl, uint64_t pos, uint64_t len) /* Programmer may be making a horrible mistake without knowing it */ if (len & bl->erase_mask) { - fprintf(stderr, "blocklevel_erase: len (0x%"PRIu64") is not erase block (0x%08x) aligned\n", + fprintf(stderr, "blocklevel_erase: len (0x%"PRIx64") is not erase block (0x%08x) aligned\n", len, bl->erase_mask + 1); return FLASH_ERR_ERASE_BOUNDARY; } |