diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 3f46279b..79939237 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -16,6 +16,9 @@ convert the local bits_to_uint64() to a proper urj_tap_register_get_value() so everyone can use it + * src/tap/idcode.c: decode the bit stream into hex values so people don't + have to do this manually + 2009-05-19 Arnim Laeuger * data/Makefile.am, data/broadcom/bcm6348/bcm6348, diff --git a/urjtag/src/tap/idcode.c b/urjtag/src/tap/idcode.c index 5009209c..7279eeec 100644 --- a/urjtag/src/tap/idcode.c +++ b/urjtag/src/tap/idcode.c @@ -57,9 +57,12 @@ urj_tap_idcode (urj_chain_t *chain, unsigned int bytes) urj_log (URJ_LOG_LEVEL_NORMAL, _("Read")); for (i = 0; i < ((bytes) ? bytes : 1000); i++) { + uint8_t val; urj_tap_shift_register (chain, rz, rout, 0); - urj_log (URJ_LOG_LEVEL_NORMAL, _(" %s"), - urj_tap_register_get_string (rout)); + val = urj_tap_register_get_value (rout); + urj_log (URJ_LOG_LEVEL_NORMAL, N_(" %s(0x%x%x)"), + urj_tap_register_get_string (rout), + (val >> 4) & 0xf, val & 0xf); if (!bytes) { /* Abort Reading when a null IDCODE has been read */