From 4d062dbc20dce5a94da8dca1253ac9337b951c51 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 22 Apr 2026 10:35:06 +0300 Subject: [PATCH] kdump(1): add sys/ prefix for exterror source file name This makes it consistent with libc formatting. Requested by: mckusick Sponsored by: The FreeBSD Foundation MFC after: 1 week --- usr.bin/kdump/kdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 9ebd1864647..75bee040a92 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -2464,7 +2464,7 @@ ktrexterr(struct ktr_exterr *ke) ue = &ke->ue; asprintf(&msg, ue->msg, (uintmax_t)ue->p1, (uintmax_t)ue->p2); - printf("{ errno %d %s:%u \"%s\" (category %u p1 %#jx p2 %#jx) }\n", + printf("{ errno %d sys/%s:%u \"%s\" (category %u p1 %#jx p2 %#jx) }\n", ue->error, cat_to_filename(ue->cat), ue->src_line, msg, ue->cat, (uintmax_t)ue->p1, (uintmax_t)ue->p2); free(msg);