git: f0e0c4c52971 - main - jevents: include file path in whitelist error message
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Mar 2026 23:39:44 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=f0e0c4c52971f58d41a89690d402520500d286bd
commit f0e0c4c52971f58d41a89690d402520500d286bd
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-03-16 23:25:00 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-03-16 23:25:46 +0000
jevents: include file path in whitelist error message
A small enhancement.
Reviewed by: Ali Mashtizadeh <ali@mashtizadeh.com>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55830
---
lib/libpmc/pmu-events/jevents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libpmc/pmu-events/jevents.c b/lib/libpmc/pmu-events/jevents.c
index 25119cd3c7b8..b129b3706832 100644
--- a/lib/libpmc/pmu-events/jevents.c
+++ b/lib/libpmc/pmu-events/jevents.c
@@ -769,7 +769,7 @@ static int json_events(const char *fn,
* handling.
*/
json_copystr(map, field, buf, sizeof(buf));
- fprintf(stderr, "Unknown field '%s'!\n", buf);
+ fprintf(stderr, "Unknown event field '%s' in %s\n", buf, fn);
_Exit(1);
}
}