From: David Brownell Date: Fri, 15 Jan 2010 21:02:45 +0000 (-0800) Subject: ADIv5 improved diagnostic X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=183765707fb4d819b790b9431b83a9bf637fadc5;p=fw%2Fopenocd 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 1a8645897..ba5db3b13 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; }