Changeset bd76871 in mainline


Ignore:
Timestamp:
2018-01-13T15:12:11Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1d6dd2a
Parents:
09d13c8e
Message:

Remove unused nonstandard DEBUG macro.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdio.h

    r09d13c8e rbd76871  
    5757/** Default size for stream I/O buffers */
    5858#define BUFSIZ  4096
    59 
    60 #define DEBUG(fmt, ...) \
    61         { \
    62                 char _buf[256]; \
    63                 int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \
    64                 if (_n > 0) \
    65                         (void) __SYSCALL3(SYS_KIO, KIO_WRITE, (sysarg_t) _buf, str_size(_buf)); \
    66         }
    6759
    6860enum _buffer_type {
  • uspace/lib/posix/include/posix/stdio.h

    r09d13c8e rbd76871  
    3939#ifndef __POSIX_DEF__
    4040#define __POSIX_DEF__(x) x
    41 /* DEBUG macro does not belong to POSIX stdio.h. Its unconditional
    42  * definition in the native stdio.h causes unexpected behaviour of
    43  * applications which uses their own DEBUG macro (e.g. debugging
    44  * output is printed even if not desirable). */
    45 #undef DEBUG
    4641#endif
    4742
Note: See TracChangeset for help on using the changeset viewer.