aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-06-30 16:51:57 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-06-30 16:51:57 +0000
commitcb8bda40695f5d402f334f48795b1ab27b72dce5 (patch)
tree8f03506afe0b7c1b72d6e18752675dacf5425b8d
parentd5332d3a904242cb82e7dbf35e4aeec7c2df4402 (diff)
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 Differential Revision: https://reviews.freebsd.org/D57966
-rw-r--r--sys/dev/evdev/evdev.c2
1 files changed, 1 insertions, 1 deletions
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,