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