From: David Brownell Date: Fri, 15 Jan 2010 21:02:45 +0000 (-0800) Subject: ADIv5 improved diagnostic X-Git-Tag: v0.4.0-rc2~80 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=183765707fb4d819b790b9431b83a9bf637fadc5;ds=sidebyside ADIv5 improved diagnostic Don't just complain about an invalid ACK; say what the value was, to help troubleshooting. Signed-off-by: David Brownell --- diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 1a86458977..ba5db3b13c 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -305,8 +305,9 @@ int swjdp_transaction_endcheck(struct swjdp_common *swjdp) } else { - LOG_WARNING("Invalid ACK " - "in JTAG-DP transaction"); + LOG_WARNING("Invalid ACK %#x" + "in JTAG-DP transaction", + swjdp->ack); return ERROR_JTAG_DEVICE_ERROR; }