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
This commit is contained in:
Konstantin Belousov
2026-04-22 10:35:06 +03:00
parent 2bff747bb0
commit 4d062dbc20
+1 -1
View File
@@ -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);