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--;