Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sched: Fix macro "SCHED_NOTE_PRINTF" requires 3 argumnets, but only 1 given #6948

Merged
merged 1 commit into from Aug 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions include/nuttx/sched_note.h
Expand Up @@ -120,10 +120,10 @@
sched_note_vprintf(SCHED_NOTE_IP, fmt, va)
# define SCHED_NOTE_VBPRINTF(event, fmt, va) \
sched_note_vbprintf(SCHED_NOTE_IP, event, fmt, va)
# define SCHED_NOTE_PRINTF(fmt, args, ...) \
sched_note_printf(SCHED_NOTE_IP, fmt, ##args)
# define SCHED_NOTE_BPRINTF(event, fmt, args, ...) \
sched_note_bprintf(SCHED_NOTE_IP, event, fmt, ##args)
# define SCHED_NOTE_PRINTF(fmt, ...) \
sched_note_printf(SCHED_NOTE_IP, fmt, ##__VA_ARGS__)
# define SCHED_NOTE_BPRINTF(event, fmt, ...) \
sched_note_bprintf(SCHED_NOTE_IP, event, fmt, ##__VA_ARGS__)
# define SCHED_NOTE_BEGIN() \
sched_note_begin(SCHED_NOTE_IP, __FUNCTION__)
# define SCHED_NOTE_END() \
Expand All @@ -133,8 +133,8 @@
# 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, args, ...)
# define SCHED_NOTE_BPRINTF(event, fmt, args, ...)
# define SCHED_NOTE_PRINTF(fmt, ...)
# define SCHED_NOTE_BPRINTF(event, fmt, ...)
# define SCHED_NOTE_BEGIN()
# define SCHED_NOTE_END()
#endif
Expand Down Expand Up @@ -678,8 +678,8 @@ void sched_note_filter_irq(struct note_filter_irq_s *oldf,
# 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, args,...)
# define SCHED_NOTE_BPRINTF(event, fmt, args,...)
# define SCHED_NOTE_PRINTF(fmt, ...)
# define SCHED_NOTE_BPRINTF(event, fmt, ...)
# define SCHED_NOTE_BEGIN()
# define SCHED_NOTE_END()

Expand Down