From: deraadt Date: Tue, 22 Feb 2022 17:31:31 +0000 (+0000) Subject: Since ktr_comm is now a string, we do not need MAXCOMLEN to limit printf. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=93415848baac897b03274ba165399f065f0ea29e;p=openbsd 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 --- 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)