Change match to fnmatch

follow the kernel side change

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-08-01 23:20:18 +08:00 • committed by Alan Carvalho de Assis
parent 1120bc844a
commit ad3f44bc77
3 changed files with 11 additions and 12 deletions

View file

@ -30,8 +30,8 @@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <sys/ioctl.h>
#include <nuttx/lib/regex.h>
#include <nuttx/note/notectl_driver.h>
#include "trace.h"
@ -473,7 +473,7 @@ static int trace_cmd_syscall(int index, int argc, FAR char **argv,
for (syscallno = 0; syscallno < SYS_nsyscalls; syscallno++)
{
if (!match(&argv[index][1], g_funcnames[syscallno]))
if (fnmatch(&argv[index][1], g_funcnames[syscallno], 0))
{
continue;
}