From 4be685c6167e8ac340cd383f0a0a61faaa45f3f8 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 23 Aug 2012 15:23:54 +0100 Subject: [PATCH] stlink: stlink_interface_init_target use hex prefix Change-Id: I782da74687bcf111c1f04c53b2c1120d6a034441 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/791 Tested-by: jenkins Reviewed-by: Freddie Chopin --- src/jtag/stlink/stlink_interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jtag/stlink/stlink_interface.c b/src/jtag/stlink/stlink_interface.c index 379e68d46..c06d86cfa 100644 --- a/src/jtag/stlink/stlink_interface.c +++ b/src/jtag/stlink/stlink_interface.c @@ -75,9 +75,8 @@ int stlink_interface_init_target(struct target *t) } if (found == 0) { - LOG_ERROR - ("stlink_interface_init_target: target not found: idcode: %x ", - t->tap->idcode); + LOG_ERROR("stlink_interface_init_target: target not found: idcode: 0x%08x", + t->tap->idcode); return ERROR_FAIL; }