@@ -73,10 +73,10 @@ extern proc_t kernproc;
7373 * @param cond precondition
7474 * @param str printf-like string
7575 */
76- #define SYSLOG_COND (cond, module , str, ...) \
77- do { \
78- if (cond) \
79- lilu_os_log ( " %s%10s" str " \n " , xStringify (PRODUCT_NAME) " : " , module " @ " , ## __VA_ARGS__); \
76+ #define SYSLOG_COND (cond, module , str, ...) \
77+ do { \
78+ if (cond) \
79+ lilu_os_log ( " %s%10s: @ " str " \n " , xStringify (PRODUCT_NAME), safeString ( module ) , ## __VA_ARGS__); \
8080 } while (0 )
8181
8282/* *
@@ -94,12 +94,12 @@ extern proc_t kernproc;
9494 * @param module log module
9595 * @param str printf-like string
9696 */
97- #define SYSTRACE_COND (cond, module , str, ...) \
98- do { \
99- if (cond) { \
100- SYSLOG (module , str, ## __VA_ARGS__); \
101- OSReportWithBacktrace ( " %s%10s" str " \n " , xStringify (PRODUCT_NAME) " : " , module " @ " , ## __VA_ARGS__); \
102- } \
97+ #define SYSTRACE_COND (cond, module , str, ...) \
98+ do { \
99+ if (cond) { \
100+ SYSLOG (module , str, ## __VA_ARGS__); \
101+ OSReportWithBacktrace ( " %s%10s: @ " str " \n " , xStringify (PRODUCT_NAME), safeString ( module ) , ## __VA_ARGS__); \
102+ } \
103103 } while (0 )
104104
105105/* *
@@ -117,12 +117,12 @@ extern proc_t kernproc;
117117 * @param module log module
118118 * @param str printf-like string
119119 */
120- #define PANIC_COND (cond, module , str, ...) \
121- do { \
122- if (cond) { \
123- (panic)( " %s%10s" str " \n " , xStringify (PRODUCT_NAME) " : " , module " @ " , ## __VA_ARGS__); \
124- UNREACHABLE (); \
125- } \
120+ #define PANIC_COND (cond, module , str, ...) \
121+ do { \
122+ if (cond) { \
123+ (panic)( " %s%10s: @ " str " \n " , xStringify (PRODUCT_NAME), safeString ( module ) , ## __VA_ARGS__); \
124+ UNREACHABLE (); \
125+ } \
126126 } while (0 )
127127
128128/* *
0 commit comments