Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/debug.h

    raf3235d r174156fd  
    3737
    3838#include <log.h>
    39 #include <printf/verify.h>
    40 #include <symtab.h>
     39#include <symtab_lookup.h>
    4140
    4241#define CALLER  ((uintptr_t) __builtin_return_address(0))
    43 
    44 /* An empty printf function to ensure syntactic correctness of disabled debug prints. */
    45 static inline void dummy_printf(const char *fmt, ...) _HELENOS_PRINTF_ATTRIBUTE(1, 2);
    46 static inline void dummy_printf(const char *fmt, ...)
    47 {
    48 }
    4942
    5043#ifdef CONFIG_LOG
     
    6053        do { \
    6154                log(LF_OTHER, LVL_DEBUG, \
    62                     "%s() from %s at %s:%u: " format, __func__, \
     55                    "%s() from %s at %s:%u: " format,__func__, \
    6356                    symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \
    6457                    ##__VA_ARGS__); \
     
    6760#else /* CONFIG_LOG */
    6861
    69 #define LOG(format, ...) dummy_printf(format, ##__VA_ARGS__)
     62#define LOG(format, ...)
    7063
    7164#endif /* CONFIG_LOG */
Note: See TracChangeset for help on using the changeset viewer.