mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-05 13:17:52 +00:00
Change match to fnmatch
follow the kernel side change Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
1120bc844a
commit
ad3f44bc77
3 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue