Changeset dc5c303 in mainline for kernel/generic/include/debug.h
- Timestamp:
- 2023-12-28T13:59:23Z (6 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
r42c2e65 rdc5c303 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.