drivers/note: fix sched_note declaration inconsistency

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-09-07 11:43:50 +08:00 committed by Petro Karashchenko
parent 5c780f6697
commit 3339e4fbc3

View File

@ -128,7 +128,7 @@
sched_note_dump_ip(tag, SCHED_NOTE_IP, event, buf, len)
# define sched_note_vprintf(tag, fmt, va) \
sched_note_vprintf_ip(tag, SCHED_NOTE_IP, fmt, va)
# define sched_note_vbprintf(event, fmt, va) \
# define sched_note_vbprintf(tag, event, fmt, va) \
sched_note_vbprintf_ip(tag, SCHED_NOTE_IP, event, fmt, va)
# define sched_note_printf(tag, fmt, ...) \
sched_note_printf_ip(tag, SCHED_NOTE_IP, fmt, ##__VA_ARGS__)
@ -702,14 +702,14 @@ void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
#else /* CONFIG_SCHED_INSTRUMENTATION */
# define sched_note_string(buf)
# define sched_note_dump(event, buf, len)
# define sched_note_vprintf(fmt, va)
# define sched_note_vbprintf(event, fmt, va)
# define sched_note_printf(fmt, ...)
# define sched_note_bprintf(event, fmt, ...)
# define sched_note_begin()
# define sched_note_end()
# define sched_note_string(tag, buf)
# define sched_note_dump(tag, event, buf, len)
# define sched_note_vprintf(tag, fmt, va)
# define sched_note_vbprintf(tag, event, fmt, va)
# define sched_note_printf(tag, fmt, ...)
# define sched_note_bprintf(tag, event, fmt, ...)
# define sched_note_begin(tag)
# define sched_note_end(tag)
# define sched_note_start(t)
# define sched_note_stop(t)