Ignore:
File:
1 edited

Legend:

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

    rda13982 r174156fd  
    3737
    3838#include <log.h>
    39 #include <printf/verify.h>
     39#include <symtab_lookup.h>
    4040
    4141#define CALLER  ((uintptr_t) __builtin_return_address(0))
    42 
    43 /* An empty printf function to ensure syntactic correctness of disabled debug prints. */
    44 static inline void dummy_printf(const char *fmt, ...) _HELENOS_PRINTF_ATTRIBUTE(1, 2);
    45 static inline void dummy_printf(const char *fmt, ...)
    46 {
    47 }
    4842
    4943#ifdef CONFIG_LOG
     
    5953        do { \
    6054                log(LF_OTHER, LVL_DEBUG, \
    61                     "%s() from %s at %s:%u: " format, __func__, \
     55                    "%s() from %s at %s:%u: " format,__func__, \
    6256                    symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \
    6357                    ##__VA_ARGS__); \
     
    6660#else /* CONFIG_LOG */
    6761
    68 #define LOG(format, ...) dummy_printf(format, ##__VA_ARGS__)
     62#define LOG(format, ...)
    6963
    7064#endif /* CONFIG_LOG */
Note: See TracChangeset for help on using the changeset viewer.