diff mbox

libflash: fix integer type in printf

Message ID 20170106123516.15317-1-patrick@stwcx.xyz
State Accepted
Headers show

Commit Message

Patrick Williams Jan. 6, 2017, 12:35 p.m. UTC
A format string had a 0x prefix on an integer but printed in decimal.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
---
 libflash/blocklevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stewart Smith Jan. 10, 2017, 3:37 a.m. UTC | #1
Patrick Williams <patrick@stwcx.xyz> writes:
> A format string had a 0x prefix on an integer but printed in decimal.
>
> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
> ---
>  libflash/blocklevel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Well, I hope that didn't cause too much wasted time.

Merged to master as of dbef62681ee0b3abde763c0035414f0e32899a18
diff mbox

Patch

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;
 	}