mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-21 06:23:35 +08:00
[kservice] 修正backtrace命令转换无符号数不正常的问题
This commit is contained in:
+1
-1
@@ -1633,7 +1633,7 @@ static void cmd_backtrace(int argc, char** argv)
|
||||
}
|
||||
}
|
||||
|
||||
pid = strtol(argv[1], &end_ptr, 0);
|
||||
pid = strtoul(argv[1], &end_ptr, 0);
|
||||
if (end_ptr == argv[1])
|
||||
{
|
||||
LOG_RAW("Invalid input: %s\n", argv[1]);
|
||||
|
||||
Reference in New Issue
Block a user