system/sched_note/note_main.c: Change the priority of errors printed
through syslog. Errors should have LOG_ERR instead of LOG_INFO. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
31ad83e018
commit
49866a8fe4
@ -128,7 +128,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length < sizeof(struct note_start_s))
|
if (note->nc_length < sizeof(struct note_start_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: note too small for start note: %d\n",
|
"ERROR: note too small for start note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -168,7 +168,7 @@ static void dump_notes(size_t nread)
|
|||||||
{
|
{
|
||||||
if (note->nc_length != sizeof(struct note_stop_s))
|
if (note->nc_length != sizeof(struct note_stop_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for stop note: %d\n",
|
"ERROR: Size incorrect for stop note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -196,7 +196,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_suspend_s))
|
if (note->nc_length != sizeof(struct note_suspend_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for suspend note: %d\n",
|
"ERROR: Size incorrect for suspend note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -230,7 +230,7 @@ static void dump_notes(size_t nread)
|
|||||||
{
|
{
|
||||||
if (note->nc_length != sizeof(struct note_resume_s))
|
if (note->nc_length != sizeof(struct note_resume_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for resume note: %d\n",
|
"ERROR: Size incorrect for resume note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -259,7 +259,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_cpu_start_s))
|
if (note->nc_length != sizeof(struct note_cpu_start_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU start note: %d\n",
|
"ERROR: Size incorrect for CPU start note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -278,7 +278,7 @@ static void dump_notes(size_t nread)
|
|||||||
{
|
{
|
||||||
if (note->nc_length != sizeof(struct note_cpu_started_s))
|
if (note->nc_length != sizeof(struct note_cpu_started_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU started note: %d\n",
|
"ERROR: Size incorrect for CPU started note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -299,7 +299,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_cpu_pause_s))
|
if (note->nc_length != sizeof(struct note_cpu_pause_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU pause note: %d\n",
|
"ERROR: Size incorrect for CPU pause note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -318,7 +318,7 @@ static void dump_notes(size_t nread)
|
|||||||
{
|
{
|
||||||
if (note->nc_length != sizeof(struct note_cpu_paused_s))
|
if (note->nc_length != sizeof(struct note_cpu_paused_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU paused note: %d\n",
|
"ERROR: Size incorrect for CPU paused note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -339,7 +339,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_cpu_resume_s))
|
if (note->nc_length != sizeof(struct note_cpu_resume_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU resume note: %d\n",
|
"ERROR: Size incorrect for CPU resume note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -358,7 +358,7 @@ static void dump_notes(size_t nread)
|
|||||||
{
|
{
|
||||||
if (note->nc_length != sizeof(struct note_cpu_resumed_s))
|
if (note->nc_length != sizeof(struct note_cpu_resumed_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for CPU resumed note: %d\n",
|
"ERROR: Size incorrect for CPU resumed note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -383,7 +383,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_preempt_s))
|
if (note->nc_length != sizeof(struct note_preempt_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for preemption note: %d\n",
|
"ERROR: Size incorrect for preemption note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -439,7 +439,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_csection_s))
|
if (note->nc_length != sizeof(struct note_csection_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for csection note: %d\n",
|
"ERROR: Size incorrect for csection note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -497,7 +497,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_spinlock_s))
|
if (note->nc_length != sizeof(struct note_spinlock_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for spinlock note: %d\n",
|
"ERROR: Size incorrect for spinlock note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -633,7 +633,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length < SIZEOF_NOTE_SYSCALL_ENTER(0))
|
if (note->nc_length < SIZEOF_NOTE_SYSCALL_ENTER(0))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for SYSCALL enter note: %d\n",
|
"ERROR: Size incorrect for SYSCALL enter note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -654,7 +654,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_syscall_leave_s))
|
if (note->nc_length != sizeof(struct note_syscall_leave_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for SYSCALL leave note: %d\n",
|
"ERROR: Size incorrect for SYSCALL leave note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -691,7 +691,7 @@ static void dump_notes(size_t nread)
|
|||||||
|
|
||||||
if (note->nc_length != sizeof(struct note_irqhandler_s))
|
if (note->nc_length != sizeof(struct note_irqhandler_s))
|
||||||
{
|
{
|
||||||
syslog(LOG_INFO,
|
syslog(LOG_ERR,
|
||||||
"ERROR: Size incorrect for IRQ note: %d\n",
|
"ERROR: Size incorrect for IRQ note: %d\n",
|
||||||
note->nc_length);
|
note->nc_length);
|
||||||
return;
|
return;
|
||||||
@ -736,7 +736,7 @@ static int note_daemon(int argc, char *argv[])
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
int errcode = errno;
|
int errcode = errno;
|
||||||
syslog(LOG_INFO, "note_daemon: ERROR: Failed to open /dev/note: %d\n",
|
syslog(LOG_ERR, "note_daemon: ERROR: Failed to open /dev/note: %d\n",
|
||||||
errcode);
|
errcode);
|
||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user