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