[kservice] 修正backtrace命令转换无符号数不正常的问题

This commit is contained in:
heyuanjie87 2023-11-07 12:25:13 +08:00 committed by GitHub
parent 246945a74c
commit 0acac2dde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]);