git: 8f1f763f713c - stable/15 - jevents: include file path in whitelist error message

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Tue, 03 Nov 2026 14:19:19 UTC
The branch stable/15 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=8f1f763f713cc132f604909794f6f2f9544786b8

commit 8f1f763f713cc132f604909794f6f2f9544786b8
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-03-16 23:25:00 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-11-03 14:18:51 +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
    
    (cherry picked from commit f0e0c4c52971f58d41a89690d402520500d286bd)
---
 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);
 			}
 		}