From f132fcf636361009b4125827351ef01556d49b31 Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Mon, 30 Sep 2013 13:31:57 +0400 Subject: Clean up many C99 integer types format specifiers This eliminates most of the warnings reported when building for arm-none-eabi (newlib). Hsiangkai, there're many similar warnings left in your nds32 files, I didn't have the nerve to clean them all, probably you could pick it up. Change-Id: Id3bbe2ed2e3f1396290e55bea4c45068165a4810 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/1674 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/target/adi_v5_swd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/target/adi_v5_swd.c') diff --git a/src/target/adi_v5_swd.c b/src/target/adi_v5_swd.c index 01782e5..027e066 100644 --- a/src/target/adi_v5_swd.c +++ b/src/target/adi_v5_swd.c @@ -209,7 +209,7 @@ COMMAND_HANDLER(handle_swd_wcr) } command_print(CMD_CTX, - "turnaround=%d, prescale=%d", + "turnaround=%" PRIu32 ", prescale=%" PRIu32, WCR_TO_TRN(wcr), WCR_TO_PRESCALE(wcr)); return ERROR_OK; @@ -330,7 +330,7 @@ static int swd_init(struct command_context *ctx) status = swd_queue_idcode_read(dap, &ack, &idcode); if (status == ERROR_OK) - LOG_INFO("SWD IDCODE %#8.8x", idcode); + LOG_INFO("SWD IDCODE %#8.8" PRIx32, idcode); return status; -- cgit v1.1