mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
trace: fix macro line continuation formatting
Fix macro line continuation formatting in trace.h by consolidating multi-line macro definitions onto single lines. This eliminates unnecessary line continuations and improves code readability while maintaining functionality. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -39,8 +39,7 @@
|
||||
# define trace_beginex(tag, name) sched_note_beginex(tag, name)
|
||||
# define trace_endex(tag, name) sched_note_endex(tag, name)
|
||||
# define trace_mark(tag, s) sched_note_mark(tag, s)
|
||||
# define trace_printf(tag, fmt, ...)
|
||||
sched_note_printf(tag, fmt, ##__VA_ARGS__)
|
||||
# define trace_printf(tag, fmt, ...) sched_note_printf(tag, fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
# define trace_begin(tag)
|
||||
# define trace_end(tag)
|
||||
@@ -56,8 +55,7 @@
|
||||
# define app_trace_beginex(name) trace_beginex(NOTE_TAG_APP, name)
|
||||
# define app_trace_endex(name) trace_endex(NOTE_TAG_APP, name)
|
||||
# define app_trace_mark(s) trace_mark(NOTE_TAG_APP, s)
|
||||
# define app_trace_printf(fmt, ...)
|
||||
sched_note_printf(NOTE_TAG_APP, fmt, ##__VA_ARGS__)
|
||||
# define app_trace_printf(fmt, ...) sched_note_printf(NOTE_TAG_APP, fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
# define app_trace_begin()
|
||||
# define app_trace_end()
|
||||
|
||||
Reference in New Issue
Block a user