!1011 fix: 修复shell_lk.c告警清零带来的逻辑修改

Merge pull request !1011 from 夏不白/module_fix
This commit is contained in:
openharmony_ci 2022-09-26 11:22:57 +00:00 committed by Gitee
commit 43d47a27e3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ INT32 CmdLog(INT32 argc, const CHAR **argv)
}
} else if (!strncmp(argv[0], "module", strlen(argv[0]) + 1)) {
module = strtoul(argv[1], &p, 0);
if ((*p != 0) || (module > MODULE4) || (module == MODULE0)) {
if ((*p != 0) || (module > MODULE4)) {
PRINTK("log %s can't access %s\n", argv[0], argv[1]);
PRINTK("not support yet\n");
return -1;