From 3b1afc45d1aec455efca3114fd916efebbc555f4 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Wed, 1 Aug 2018 23:01:07 +0200 Subject: [PATCH] tests: periph_flashpage: fix printf format strings --- tests/periph_flashpage/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/periph_flashpage/main.c b/tests/periph_flashpage/main.c index a7d8bdddb3..947c58c726 100644 --- a/tests/periph_flashpage/main.c +++ b/tests/periph_flashpage/main.c @@ -18,6 +18,7 @@ * @} */ +#include #include #include #include @@ -195,7 +196,7 @@ static int cmd_write_raw(int argc, char **argv) flashpage_write_raw((void*)addr, raw_buf, strlen(raw_buf)); - printf("wrote local data to flash address %#lx of len %u\n", + printf("wrote local data to flash address %#" PRIx32 " of len %u\n", addr, strlen(raw_buf)); return 0; }