- Timestamp:
- Jan 17, 2007, 4:31:40 PM (14 years ago)
- Location:
- zzuf/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/debug.c
r1685 r1688 84 84 if(i >= 0x20 && i < 0x7f) 85 85 write(fd, &i, 1); 86 else if(i == '\n') 87 write(fd, "\\n", 2); 88 else if(i == '\t') 89 write(fd, "\\t", 2); 90 else if(i == '\r') 91 write(fd, "\\r", 2); 86 92 else 87 93 { -
zzuf/trunk/src/lib-stream.c
r1687 r1688 288 288 _zz_disabled = 0; \ 289 289 FGETC_FUZZ \ 290 if(ret >= 0x20 && ret <= 0x7f) \ 291 debug("%s([%i]) = 0x%02x '%c'", __func__, fd, ret, (char)ret); \ 292 else \ 293 debug("%s([%i]) = 0x%02x", __func__, fd, ret); \ 290 debug("%s([%i]) = '%c'", __func__, fd, ret); \ 294 291 } while(0) 295 292 … … 394 391 #endif 395 392 396 if(ret >= 0x20 && ret <= 0x7f) 397 debug("%s(0x%02x, [%i]) = 0x%02x '%c'", __func__, c, fd, ret, ret); 398 else 399 debug("%s(0x%02x, [%i]) = 0x%02x", __func__, c, fd, ret); 393 debug("%s(0x%02x, [%i]) = '%c'", __func__, c, fd, ret); 400 394 return ret; 401 395 } … … 467 461 } \ 468 462 if(need_delim) \ 469 debug("%s(%p, %p, 0x%02x, [%i]) = %li", __func__, \463 debug("%s(%p, %p, '%c', [%i]) = %li", __func__, \ 470 464 lineptr, n, delim, fd, (long int)ret); \ 471 465 else \
Note: See TracChangeset
for help on using the changeset viewer.