!521 修复: 限制调用sync函数打印unsupport sync

Merge pull request !521 from phchang/fixsync_8
This commit is contained in:
openharmony_ci 2021-08-13 02:04:30 +00:00 committed by Gitee
commit 9fa8d27c6c
1 changed files with 2 additions and 0 deletions

View File

@ -460,8 +460,10 @@ void sync(void)
{
(void)sd_sync_fn(0);
(void)sd_sync_fn(1);
return;
}
#endif
PRINT_ERR("Unsupport syscall %s\n", __FUNCTION__);
}
static char *ls_get_fullpath(const char *path, struct dirent *pdirent)