From 93415848baac897b03274ba165399f065f0ea29e Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 22 Feb 2022 17:31:31 +0000 Subject: [PATCH] Since ktr_comm is now a string, we do not need MAXCOMLEN to limit printf. And thus, sys/param.h is not needed either. ok millert --- usr.bin/kdump/kdump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index a7fe190aab6..5a0048abd9c 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.147 2022/02/22 03:40:55 deraadt Exp $ */ +/* $OpenBSD: kdump.c,v 1.148 2022/02/22 17:31:31 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -29,7 +29,6 @@ * SUCH DAMAGE. */ -#include /* MAXCOMLEN */ #include #include #include @@ -369,7 +368,7 @@ dumpheader(struct ktr_header *kth) basecol = printf("%6ld", (long)kth->ktr_pid); if (needtid) basecol += printf("/%-7ld", (long)kth->ktr_tid); - basecol += printf(" %-8.*s ", MAXCOMLEN, kth->ktr_comm); + basecol += printf(" %-8s ", kth->ktr_comm); if (timestamp != TIMESTAMP_NONE) { if (timestamp == TIMESTAMP_ELAPSED) { if (prevtime.tv_sec == 0) -- 2.20.1