rs

FTDI serial communication program
git clone git://git.2f30.org/rs
Log | Files | Refs | README | LICENSE

commit 24e8a01ecc49118d40891f1beaf744ae8b4f9f47
parent 1a1ac9b8e42750115a28e6bd2e3a9df73f763197
Author: sin <sin@2f30.org>
Date:   Sat, 16 Nov 2013 11:15:45 +0000

Print vid and pid when we fail to open the device

Diffstat:
Mrs.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rs.c b/rs.c @@ -171,8 +171,8 @@ main(int argc, char *argv[]) } if (ftdi_usb_open(&ftdictx, vendor, product) < 0) { - fprintf(stderr, "ftdi_usb_open: %s\n", - ftdi_get_error_string(&ftdictx)); + fprintf(stderr, "ftdi_usb_open: %04x:%04x: %s\n", + vendor, product, ftdi_get_error_string(&ftdictx)); exit(EXIT_FAILURE); } ftdi_set_baudrate(&ftdictx, baudrate);