]> git.sur5r.net Git - openocd/commitdiff
ADIv5 improved diagnostic
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 15 Jan 2010 21:02:45 +0000 (13:02 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 15 Jan 2010 21:02:45 +0000 (13:02 -0800)
Don't just complain about an invalid ACK; say what the
value was, to help troubleshooting.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm_adi_v5.c

index 1a86458977cb177b981e10500e317f6baf12ef07..ba5db3b13c23bd1faca14cfd2c350524c51a6737 100644 (file)
@@ -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;
                        }