From 969f6380eb66f809eed3e5c38b6021824a4cc2bf Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Tue, 3 Jun 2025 20:51:06 -0500 Subject: [PATCH] kdump: nicer printing of kill(2) PID argument Similar to wait*(), kill(2) operates on a pid that currently gets output as hex. Output it in decimal to make it a little easier to eyeball the pid we're signalling. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D50508 --- usr.bin/kdump/kdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index ff32dd418f2..86df45acdf0 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1028,7 +1028,8 @@ ktrsyscall_freebsd(struct ktr_syscall *ktr, register_t **resip, narg--; break; case SYS_kill: - print_number(ip, narg, c); + *ip = (pid_t)*ip; + print_decimal_number(ip, narg, c); putchar(','); print_signal(*ip); ip++;