You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/12 14:29:15 UTC

[incubator-nuttx-apps] 04/05: system/sched_note/note_main.c: Some cosmetic changes to comments.

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

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

commit 610d3878afc8997d74f73fa7c2547f18e13428ee
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Thu Nov 11 15:23:46 2021 +0100

    system/sched_note/note_main.c:  Some cosmetic changes to comments.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 system/sched_note/note_main.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/system/sched_note/note_main.c b/system/sched_note/note_main.c
index 3e40baf..5f589fb 100644
--- a/system/sched_note/note_main.c
+++ b/system/sched_note/note_main.c
@@ -129,7 +129,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length < sizeof(struct note_start_s))
                 {
                   syslog(LOG_ERR,
-                         "note too small for start note: %d\n",
+                         "Note too small for \"Start\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -169,7 +169,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_stop_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for stop note: %d\n",
+                         "Size incorrect for \"Stop\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -197,7 +197,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_suspend_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for suspend note: %d\n",
+                         "Size incorrect for \"Suspend\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -231,7 +231,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_resume_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for resume note: %d\n",
+                         "Size incorrect for \"Resume\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -260,7 +260,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_start_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU start note: %d\n",
+                         "Size incorrect for \"CPU Start\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -279,7 +279,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_started_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU started note: %d\n",
+                         "Size incorrect for \"CPU started\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -300,7 +300,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_pause_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU pause note: %d\n",
+                         "Size incorrect for \"CPU pause\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -319,7 +319,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_paused_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU paused note: %d\n",
+                         "Size incorrect for \"CPU paused\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -340,7 +340,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_resume_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU resume note: %d\n",
+                         "Size incorrect for \"CPU resume\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -359,7 +359,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_cpu_resumed_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for CPU resumed note: %d\n",
+                         "Size incorrect for \"CPU resumed\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -384,7 +384,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_preempt_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for preemption note: %d\n",
+                         "Size incorrect for \"Preemption\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -440,7 +440,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_csection_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for csection note: %d\n",
+                         "Size incorrect for \"csection\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -498,7 +498,7 @@ static void dump_notes(size_t nread)
               if (note->nc_length != sizeof(struct note_spinlock_s))
                 {
                   syslog(LOG_ERR,
-                         "Size incorrect for spinlock note: %d\n",
+                         "Size incorrect for \"Spinlock\" note: %d\n",
                          note->nc_length);
                   return;
                 }
@@ -634,7 +634,7 @@ static void dump_notes(size_t nread)
                     if (note->nc_length < SIZEOF_NOTE_SYSCALL_ENTER(0))
                       {
                         syslog(LOG_ERR,
-                               "Size incorrect for SYSCALL enter note: %d\n",
+                               "Size incorrect for \"SYSCALL enter\" note: %d\n",
                                note->nc_length);
                         return;
                       }
@@ -655,7 +655,7 @@ static void dump_notes(size_t nread)
                     if (note->nc_length != sizeof(struct note_syscall_leave_s))
                       {
                         syslog(LOG_ERR,
-                               "Size incorrect for SYSCALL leave note: %d\n",
+                               "Size incorrect for \"SYSCALL leave\" note: %d\n",
                                note->nc_length);
                         return;
                       }
@@ -692,7 +692,7 @@ static void dump_notes(size_t nread)
                     if (note->nc_length != sizeof(struct note_irqhandler_s))
                       {
                         syslog(LOG_ERR,
-                               "Size incorrect for IRQ note: %d\n",
+                               "Size incorrect for \"IRQ\" note: %d\n",
                                note->nc_length);
                         return;
                       }