}
}
-void jtagkey_state(unsigned char data) {
+#ifdef DEBUG
+static void jtagkey_state(unsigned char data) {
fprintf(stderr,"Pins high: ");
if (data & JTAGKEY_TCK)
fprintf(stderr,"\n");
}
+#endif
struct jtagkey_reader_arg {
int num;
pthread_join(reader_thread, NULL);
#ifdef DEBUG
- DPRINTF("write: ");
- hexdump(writebuf, writepos-writebuf);
- DPRINTF("read: ");
- hexdump(readbuf, i);
+ hexdump(writebuf, writepos-writebuf, "->");
+ hexdump(readbuf, i, "<-");
#endif
writepos = writebuf;