Hi,
the formatting for the USB_IO latency debug is incorrect. The value
after the decimal point is in usecs and needs a %06i format to print
correctly. The attached patch fixes this.
Cheers,
John McC.
Index: src/jtag/ft2232.c
===================================================================
--- src/jtag/ft2232.c (revision 1298)
+++ src/jtag/ft2232.c (working copy)
@@ -442,7 +442,7 @@
timeval_subtract(&d_inter2, &inter2, &start);
timeval_subtract(&d_end, &end, &start);
- LOG_INFO("inter: %i.%i, inter2: %i.%i end: %i.%i", d_inter.tv_sec, d_inter.tv_usec, d_inter2.tv_sec, d_inter2.tv_usec, d_end.tv_sec, d_end.tv_usec);
+ LOG_INFO("inter: %i.%06i, inter2: %i.%06i end: %i.%06i", d_inter.tv_sec, d_inter.tv_usec, d_inter2.tv_sec, d_inter2.tv_usec, d_end.tv_sec, d_end.tv_usec);
#endif
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development