aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2026-03-16 23:25:00 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2026-03-16 23:25:46 +0000
commitf0e0c4c52971f58d41a89690d402520500d286bd (patch)
tree8084afc4f66cf0b52b220d5ebb75b7cb4cf79c30
parent83d7a4966f08f34a699da649bd4f714b450df39b (diff)
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
-rw-r--r--lib/libpmc/pmu-events/jevents.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}