git: 240bd2eeb21f - stable/15 - evdev: use a prometheus-safe label for ev_sysctl_tree

Kyle Evans <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a75395d.3ae4d.7132bbd__29523.3753904299$1786067382$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=240bd2eeb21f959f7340402211c0bf43a58d31b5

commit 240bd2eeb21f959f7340402211c0bf43a58d31b5
Author:     Kyle Evans <[email protected]>
AuthorDate: 2026-06-30 16:51:57 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2026-08-06 23:36:07 +0000

    evdev: use a prometheus-safe label for ev_sysctl_tree
    
    Prometheus doesn't allow spaces, let's normalize this to what we use
    elsewhere for consistency.  The sysctl exporter could probably do this
    itself, but let's decouple that from the immediate problem: matching the
    label between the exported data and in-tree is nice for greppability.
    
    PR:             296179
    Reviewed by:    asomers, wulf
    
    (cherry picked from commit cb8bda40695f5d402f334f48795b1ab27b72dce5)
---
 sys/dev/evdev/evdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/evdev/evdev.c b/sys/dev/evdev/evdev.c
index b8628d570a3c..20244333f1f8 100644
--- a/sys/dev/evdev/evdev.c
+++ b/sys/dev/evdev/evdev.c
@@ -215,7 +215,7 @@ evdev_sysctl_create(struct evdev_dev *evdev)
 	ev_sysctl_tree = SYSCTL_ADD_NODE_WITH_LABEL(&evdev->ev_sysctl_ctx,
 	    SYSCTL_STATIC_CHILDREN(_kern_evdev_input), OID_AUTO,
 	    ev_unit_str, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, "",
-	    "device index");
+	    "device_index");
 
 	SYSCTL_ADD_STRING(&evdev->ev_sysctl_ctx,
 	    SYSCTL_CHILDREN(ev_sysctl_tree), OID_AUTO, "name", CTLFLAG_RD,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.