diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-27 13:00:29 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-27 13:00:29 +0000 |
commit | 9d5921443cb380558adba80c7327910d187bc797 (patch) | |
tree | 01d23cc58abd98e75e0441caf77f3b43bc2fab62 /src | |
parent | 88c91b4663ae5dca70ebbf52878904d23c98ead2 (diff) | |
download | riscv-openocd-9d5921443cb380558adba80c7327910d187bc797.zip riscv-openocd-9d5921443cb380558adba80c7327910d187bc797.tar.gz riscv-openocd-9d5921443cb380558adba80c7327910d187bc797.tar.bz2 |
SimonQian <simonqian@simonqian.com> patch for error compiling vsllink if --enable-verbose-jtag-io is set
git-svn-id: svn://svn.berlios.de/openocd/trunk@1545 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/vsllink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jtag/vsllink.c b/src/jtag/vsllink.c index ae5391e..360bebe 100644 --- a/src/jtag/vsllink.c +++ b/src/jtag/vsllink.c @@ -242,7 +242,7 @@ static int vsllink_usb_message(vsllink_jtag_t *vsllink_jtag, int out_length, int static int vsllink_usb_write(vsllink_jtag_t *vsllink_jtag, int out_length); static int vsllink_usb_read(vsllink_jtag_t *vsllink_jtag); -#ifdef _DEBUG_USB_COMMS_ +#if defined _DEBUG_USB_COMMS_ || defined _DEBUG_JTAG_IO_ static void vsllink_debug_buffer(u8 *buffer, int length); #endif @@ -1243,7 +1243,7 @@ static void vsllink_scan_normal(int ir_scan, enum scan_type type, u8 *buffer, in // which is merged from the last tms shift command vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = VSLLINK_CMDJTAGSEQ_SCAN | 1; vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = ((tdi_len + 1) >> 0) & 0xff; - vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = ((tdi_len + 1)>> 8) & 0xff; + vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = ((tdi_len + 1) >> 8) & 0xff; vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = tms_tmp; vsllink_usb_out_buffer[vsllink_usb_out_buffer_idx++] = buffer[0] << (8 - vsllink_tms_data_len); @@ -1917,7 +1917,7 @@ static int vsllink_usb_read(vsllink_jtag_t *vsllink_jtag) #define BYTES_PER_LINE 16 -#ifdef _DEBUG_USB_COMMS_ +#if defined _DEBUG_USB_COMMS_ || defined _DEBUG_JTAG_IO_ static void vsllink_debug_buffer(u8 *buffer, int length) { char line[81]; @@ -1936,4 +1936,4 @@ static void vsllink_debug_buffer(u8 *buffer, int length) LOG_DEBUG("%s", line); } } -#endif // _DEBUG_USB_COMMS_ +#endif // _DEBUG_USB_COMMS_ || _DEBUG_JTAG_IO_ |