From f740c55e9cbc1658e2806eac0e9a38fe807600cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Tue, 23 Dec 2008 22:57:46 +0000 Subject: [PATCH] added debug output for svf_compare_tdo() git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1416 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 4 ++++ jtag/src/svf/svf.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index d3cb74a6..bbed2c9e 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,7 @@ +2008-12-23 Arnim Laeuger + + * src/svf/svf.c: added debug output for svf_compare_tdo() + 2008-12-23 Kolja Waschk * src/tap/parport/direct.c, configure.ac, doc/UrJTAG.txt: diff --git a/jtag/src/svf/svf.c b/jtag/src/svf/svf.c index 61b68d15..ef2f0377 100644 --- a/jtag/src/svf/svf.c +++ b/jtag/src/svf/svf.c @@ -54,6 +54,11 @@ #include "fclock.h" #endif + +/* define for debug messages */ +#undef DEBUG + + int svfparse(parser_priv_t *priv_data, chain_t *chain); @@ -449,6 +454,13 @@ svf_compare_tdo(parser_priv_t *priv, char *tdo, char *mask, tap_register *reg, Y loc->last_line+1, loc->last_column+1 ); } + +#ifdef DEBUG + printf( "Expected : %s\n", tdo_bit ); + printf( "Mask : %s\n", mask_bit ); + printf( "TDO data : %s\n", reg->string ); +#endif + if (priv->svf_stop_on_mismatch) result = 0; }