From 97a5e7a60899823fd34bd292973072fe8fdd61d0 Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 21 Apr 2009 12:10:29 +0000 Subject: Zach Welch fix ft2232 usb io format warning git-svn-id: svn://svn.berlios.de/openocd/trunk@1497 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/ft2232.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jtag/ft2232.c b/src/jtag/ft2232.c index 8cc93bfa..62b15d65 100644 --- a/src/jtag/ft2232.c +++ b/src/jtag/ft2232.c @@ -472,9 +472,10 @@ static int ft2232_send_and_recv(jtag_command_t* first, jtag_command_t* last) timeval_subtract(&d_inter2, &inter2, &start); timeval_subtract(&d_end, &end, &start); - 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); + LOG_INFO("inter: %u.%06u, inter2: %u.%06u end: %u.%06u", + (unsigned)d_inter.tv_sec, (unsigned)d_inter.tv_usec, + (unsigned)d_inter2.tv_sec, (unsigned)d_inter2.tv_usec, + (unsigned)d_end.tv_sec, (unsigned)d_end.tv_usec); #endif ft2232_buffer_size = bytes_read; -- cgit v1.2.3