Changes in kernel/generic/include/debug.h [263bda2:31198c12] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
r263bda2 r31198c12 55 55 do { \ 56 56 if (!(expr)) \ 57 panic _assert("%s", #expr); \57 panic("Assertion failed (%s)", #expr); \ 58 58 } while (0) 59 59 … … 72 72 do { \ 73 73 if (!(expr)) \ 74 panic _assert("%s, %s", #expr, msg); \74 panic("Assertion failed (%s, %s)", #expr, msg); \ 75 75 } while (0) 76 76 … … 93 93 #define LOG(format, ...) \ 94 94 do { \ 95 printf("%s() from %s at %s:%u: " format "\n", __func__, \ 96 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 97 ##__VA_ARGS__); \ 95 printf("%s->%s() at %s:%u: " format "\n", symtab_fmt_name_lookup(CALLER), \ 96 __func__, __FILE__, __LINE__, ##__VA_ARGS__); \ 98 97 } while (0) 99 98 100 extern void __cyg_profile_func_enter(void *, void *); 101 extern void __cyg_profile_func_exit(void *, void *); 99 /** Extensive logging execute macro 100 * 101 * If CONFIG_LOG is set, the LOG_EXEC() macro 102 * will print an information about calling a given 103 * function and call it. 104 * 105 */ 106 #define LOG_EXEC(fnc) \ 107 do { \ 108 printf("%s->%s() at %s:%u: " #fnc "\n", symtab_fmt_name_lookup(CALLER), \ 109 __func__, __FILE__, __LINE__); \ 110 fnc; \ 111 } while (0) 102 112 103 113 #else /* CONFIG_LOG */ 104 114 105 115 #define LOG(format, ...) 116 #define LOG_EXEC(fnc) fnc 106 117 107 #endif /* CONF IG_LOG */118 #endif /* CONFOG_LOG */ 108 119 109 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.