rs

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

commit d0a5dbd750d02139d763a07f663b2a0f00d5a7e0
parent 321581f05886360819acea13ad63b21f0ef30079
Author: sin <sin@2f30.org>
Date:   Fri, 15 Nov 2013 12:32:31 +0000

Fix format of read error

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

diff --git a/rs.c b/rs.c @@ -61,8 +61,8 @@ loop(void) ftdi_write_data(&ftdictx, buf, n); n = ftdi_read_data(&ftdictx, buf, sizeof(buf)); if (n < 0) { - fprintf(stderr, "read error %d (%s)\n", - (int)n, ftdi_get_error_string(&ftdictx)); + fprintf(stderr, "ftdi_read_data: read error: %s\n", + ftdi_get_error_string(&ftdictx)); break; } write(STDOUT_FILENO, buf, n);