From 3339e4fbc37b4602e6a8ab2fd3fc844ec9309490 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Thu, 7 Sep 2023 11:43:50 +0800 Subject: [PATCH] drivers/note: fix sched_note declaration inconsistency Signed-off-by: yinshengkai --- include/nuttx/sched_note.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h index 95afa011ed..bd6601f5da 100644 --- a/include/nuttx/sched_note.h +++ b/include/nuttx/sched_note.h @@ -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)