From b2caf46b4ef022fae5751abe16bdb591286a2075 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Sat, 26 Mar 2022 11:54:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=AD=94=E6=B3=95?= =?UTF-8?q?=E9=94=AE=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushengle Change-Id: I9787fb3420da73cf289c434995fd2371e3fe5117 --- kernel/common/los_magickey.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/common/los_magickey.c b/kernel/common/los_magickey.c index fba1c059..af2f79e0 100644 --- a/kernel/common/los_magickey.c +++ b/kernel/common/los_magickey.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. + * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -32,7 +32,7 @@ #include "los_magickey.h" #include "console.h" #include "los_task_pri.h" - +#include "los_process_pri.h" #ifdef LOSCFG_ENABLE_MAGICKEY @@ -97,9 +97,7 @@ STATIC VOID OsMagicHelp(VOID) STATIC VOID OsMagicTaskShow(VOID) { - const CHAR *arg = "-a"; - - (VOID)OsShellCmdDumpTask(1, &arg); + (VOID)OsShellCmdTskInfoGet(OS_ALL_TASK_MASK, NULL, OS_PROCESS_INFO_ALL); return; } -- GitLab