From 0acac2dde949142cfa2f8d16071fa067d611816e Mon Sep 17 00:00:00 2001 From: heyuanjie87 Date: Tue, 7 Nov 2023 12:25:13 +0800 Subject: [PATCH] =?UTF-8?q?[kservice]=20=E4=BF=AE=E6=AD=A3backtrace?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=BD=AC=E6=8D=A2=E6=97=A0=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E6=AD=A3=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/kservice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kservice.c b/src/kservice.c index f8890d2fe6..24223ff7dd 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -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]);