Skip to content

Commit

Permalink
note:fix syscall note compile error
Browse files Browse the repository at this point in the history
Signed-off-by: zhangwenjian <[email protected]>
  • Loading branch information
zhangwenjian111 authored and xiaoxiang781216 committed Oct 13, 2024
1 parent 149b1f1 commit d469216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/note/note_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,9 @@ void sched_note_syscall_enter(int nr, int argc, ...)
FAR struct note_driver_s **driver;
bool formatted = false;
FAR struct tcb_s *tcb = this_task();
unsigned int length;
unsigned int length = 0;
uintptr_t arg;
va_list ap;
int argc_bak = argc;
int i;

Expand All @@ -1232,7 +1233,8 @@ void sched_note_syscall_enter(int nr, int argc, ...)
}

#ifdef CONFIG_SCHED_INSTRUMENTATION_FILTER
if (!(*driver->filter.mode.flag & NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS))
if (!((*driver)->filter.mode.flag
& NOTE_FILTER_MODE_FLAG_SYSCALL_ARGS))
{
if (formatted && argc != 0)
{
Expand Down

0 comments on commit d469216

Please sign in to comment.