Changeset 263bda2 in mainline for kernel/generic/include/debug.h
- Timestamp:
- 2010-06-30T09:10:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4edd57fd
- Parents:
- 793cf029
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
r793cf029 r263bda2 93 93 #define LOG(format, ...) \ 94 94 do { \ 95 printf("%s->%s() at %s:%u: " format "\n", symtab_fmt_name_lookup(CALLER), \ 96 __func__, __FILE__, __LINE__, ##__VA_ARGS__); \ 95 printf("%s() from %s at %s:%u: " format "\n", __func__, \ 96 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 97 ##__VA_ARGS__); \ 97 98 } while (0) 98 99 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) 100 extern void __cyg_profile_func_enter(void *, void *); 101 extern void __cyg_profile_func_exit(void *, void *); 112 102 113 103 #else /* CONFIG_LOG */ 114 104 115 105 #define LOG(format, ...) 116 #define LOG_EXEC(fnc) fnc117 106 118 #endif /* CONF OG_LOG */107 #endif /* CONFIG_LOG */ 119 108 120 109 #endif
Note:
See TracChangeset
for help on using the changeset viewer.