From 47cac3e134b2d114bff67d692b1da1f12ff76787 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Jun 2010 02:18:25 +0000 Subject: [PATCH] fix gcc printf warning git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1795 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 4 ++++ urjtag/src/tap/usbconn/libftdi.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 7cb2f093..648b2dad 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,7 @@ +2010-06-22 Mike Frysinger + + * src/tap/usbconn/libftdi.c (usbconn_ftdi_flush): Fix gcc printf warning. + 2010-06-21 Mike Frysinger * src/bus/bf518f_ezbrd.c (urj_bus_bf51x_bus): Fix copy & paste typo in name. diff --git a/urjtag/src/tap/usbconn/libftdi.c b/urjtag/src/tap/usbconn/libftdi.c index 3e1f9b01..a23de05a 100644 --- a/urjtag/src/tap/usbconn/libftdi.c +++ b/urjtag/src/tap/usbconn/libftdi.c @@ -122,7 +122,7 @@ usbconn_ftdi_flush (ftdi_param_t *p) if ((xferred = ftdi_write_data (p->fc, p->send_buf, p->send_buffered)) < 0) { - urj_error_set (URJ_ERROR_FTD, ftdi_get_error_string (p->fc)); + urj_error_set (URJ_ERROR_FTD, "%s", ftdi_get_error_string (p->fc)); return -1; }