You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/08/29 10:04:55 UTC

[incubator-nuttx] branch master updated: sched: Fix macro "SCHED_NOTE_PRINTF" requires 3 argumnets, but only 1 given

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 5548676ab5 sched: Fix macro "SCHED_NOTE_PRINTF" requires 3 argumnets, but only 1 given
5548676ab5 is described below

commit 5548676ab50a3dc906b39fe4927c73911fc8606e
Author: xiaoxiang <xi...@xiaomi.com>
AuthorDate: Fri Aug 26 16:52:32 2022 +0800

    sched: Fix macro "SCHED_NOTE_PRINTF" requires 3 argumnets, but only 1 given
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 include/nuttx/sched_note.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/include/nuttx/sched_note.h b/include/nuttx/sched_note.h
index 37a9c23f2e..b0613e3b18 100644
--- a/include/nuttx/sched_note.h
+++ b/include/nuttx/sched_note.h
@@ -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() \
@@ -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
@@ -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()