diff --git a/sys/compat/linuxkpi/common/src/prctl.c b/sys/compat/linuxkpi/common/src/prctl.c index d0c299250cb203f1c2c44ba3700e8d8a1ea94d72..91b5d1672b34b39b860cc604b57124168c2c1756 100755 --- a/sys/compat/linuxkpi/common/src/prctl.c +++ b/sys/compat/linuxkpi/common/src/prctl.c @@ -46,7 +46,7 @@ int prctl(int option, ...) } name = va_arg(ap, unsigned long); - err = OsSetCurrTaskName((const char *)name); + err = OsSetTaskName(OsCurrTaskGet(), (const char *)name, TRUE); if (err != LOS_OK) { goto ERROR; }