Changeset 2965d18 in mainline for uspace/lib/c/include/io/kio.h


Ignore:
Timestamp:
2018-07-30T20:15:38Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d4b7b29
Parents:
8080262
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 19:53:13)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-30 20:15:38)
Message:

Add debug counter for rmutex locks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/kio.h

    r8080262 r2965d18  
    4949extern int kio_vprintf(const char *, va_list);
    5050
     51/*
     52 * In some files, we have conditional DPRINTF(...) macro that is defined empty
     53 * in most cases. Provide a dummy printf so we get argument checking and
     54 * avoid unused variable errors.
     55 */
     56
     57static inline int dummy_printf(const char *fmt, ...) _HELENOS_PRINTF_ATTRIBUTE(1, 2);
     58static inline int dummy_printf(const char *fmt, ...)
     59{
     60        /* Empty. */
     61        (void) fmt;
     62        return 0;
     63}
     64
    5165#endif
    5266
Note: See TracChangeset for help on using the changeset viewer.