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