Changes in kernel/generic/include/debug.h [da13982:174156fd] in mainline
- File:
-
- 1 edited
-
kernel/generic/include/debug.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
rda13982 r174156fd 37 37 38 38 #include <log.h> 39 #include < printf/verify.h>39 #include <symtab_lookup.h> 40 40 41 41 #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 }48 42 49 43 #ifdef CONFIG_LOG … … 59 53 do { \ 60 54 log(LF_OTHER, LVL_DEBUG, \ 61 "%s() from %s at %s:%u: " format, __func__, \55 "%s() from %s at %s:%u: " format,__func__, \ 62 56 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 63 57 ##__VA_ARGS__); \ … … 66 60 #else /* CONFIG_LOG */ 67 61 68 #define LOG(format, ...) dummy_printf(format, ##__VA_ARGS__)62 #define LOG(format, ...) 69 63 70 64 #endif /* CONFIG_LOG */
Note:
See TracChangeset
for help on using the changeset viewer.
