From d097268153d2ad14e14bf202f2c4d125b4c3d86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Mon, 6 Apr 2009 19:23:49 +0000 Subject: [PATCH] Better errors from ftdi (Jon Smirl) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1478 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 2 ++ jtag/src/tap/usbconn/libftdi.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index cf343f2e..aedaec31 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,5 +1,7 @@ 2009-04-06 Arnim Laeuger + * src/tap/usbconn/libftdi.c: Better errors from ftdi (Jon Smirl) + * src/flash/jedec.c: Author added. 2009-04-05 Arnim Laeuger diff --git a/jtag/src/tap/usbconn/libftdi.c b/jtag/src/tap/usbconn/libftdi.c index fa965c91..59fb3147 100644 --- a/jtag/src/tap/usbconn/libftdi.c +++ b/jtag/src/tap/usbconn/libftdi.c @@ -319,7 +319,8 @@ usbconn_ftdi_common_open( usbconn_t *conn, int printerr ) if (status < 0) { - if (printerr) + /* device not found == -3 */ + if (printerr || (status != -3)) printf( _("%s() failed: %s\n"), __FUNCTION__, ftdi_get_error_string( fc ) ); ftdi_deinit( fc );