From 706e0309076baedfe702986d64a0127b46ad2916 Mon Sep 17 00:00:00 2001 From: troth Date: Mon, 24 Mar 2003 02:37:33 +0000 Subject: [PATCH] * ser_posix.c: Limit verbose output to 2 chars. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@298 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 4 ++++ ser_posix.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 10e1d139..49723264 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-03-23 Theodore A. Roth + + * ser_posix.c: Limit verbose output to 2 chars. + 2003-03-23 Theodore A. Roth * ser_posix.c: Add verbose level > 3 output for send and recv functions. diff --git a/ser_posix.c b/ser_posix.c index 143308d1..2bff1973 100644 --- a/ser_posix.c +++ b/ser_posix.c @@ -175,7 +175,7 @@ int serial_send(int fd, char * buf, size_t buflen) else { fprintf(stderr, ". "); } - fprintf(stderr, "[%02x] ", (unsigned int)c); + fprintf(stderr, "[%02x] ", ((unsigned int)c) & 0xff); buf++; buflen--;