Ignore:
Timestamp:
Jan 17, 2007, 4:31:40 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Improved %c usage in our custom fprintf() implementation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-stream.c

    r1687 r1688  
    288288        _zz_disabled = 0; \
    289289        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); \
    294291    } while(0)
    295292
     
    394391#endif
    395392
    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);
    400394    return ret;
    401395}
     
    467461        } \
    468462        if(need_delim) \
    469             debug("%s(%p, %p, 0x%02x, [%i]) = %li", __func__, \
     463            debug("%s(%p, %p, '%c', [%i]) = %li", __func__, \
    470464                  lineptr, n, delim, fd, (long int)ret); \
    471465        else \
Note: See TracChangeset for help on using the changeset viewer.