From: Antonio Borneo Date: Tue, 12 May 2020 14:21:13 +0000 (+0200) Subject: target/arc: fix build with clang X-Git-Tag: v0.11.0-rc1~287 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=11c5efd2ecd8df002567e272b874f2e6b821d9cd target/arc: fix build with clang Commit da41bce3aee9 ("target/arc: introduce breakpoint functionality") introduces a mismatch between the format string and one int constant. Change the format string to match the int constant. Change-Id: I0d59552205551b90e165c0a2e3fef247ad0c7701 Signed-off-by: Antonio Borneo Fixes: da41bce3aee9 ("target/arc: introduce breakpoint functionality") Reviewed-on: http://openocd.zylin.com/5655 Tested-by: jenkins Reviewed-by: Evgeniy Didin Reviewed-by: Tarek BOCHKATI --- diff --git a/src/target/arc.c b/src/target/arc.c index bf744962a2..6cf0ec7af7 100644 --- a/src/target/arc.c +++ b/src/target/arc.c @@ -1445,7 +1445,7 @@ static int arc_unset_breakpoint(struct target *target, } else { LOG_WARNING("Software breakpoint @0x%" TARGET_PRIxADDR " has been overwritten outside of debugger. " - "Expected: 0x%04" PRIx16 ", got: 0x%04" PRIx16, + "Expected: 0x%04x, got: 0x%04" PRIx16, breakpoint->address, ARC_SDBBP_16, current_instr); } } else {