summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/geom_stats.c2
-rw-r--r--sys/geom/geom_stats.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_stats.c b/sys/geom/geom_stats.c
index f93be80..8b6581b 100644
--- a/sys/geom/geom_stats.c
+++ b/sys/geom/geom_stats.c
@@ -141,5 +141,5 @@ void
g_stat_init(void)
{
make_dev(&geom_stats_cdevsw, GEOM_MINOR_STATS,
- UID_ROOT, GID_WHEEL, 0400, "geom.stats");
+ UID_ROOT, GID_WHEEL, 0400, GEOM_STATS_DEVICE);
}
diff --git a/sys/geom/geom_stats.h b/sys/geom/geom_stats.h
index 54ca880..8a0cf83 100644
--- a/sys/geom/geom_stats.h
+++ b/sys/geom/geom_stats.h
@@ -31,6 +31,8 @@
#ifndef _GEOM_GEOM_STATS_H_
#define _GEOM_GEOM_STATS_H_
+#define GEOM_STATS_DEVICE "geom.stats"
+
/*
* A g_stat contains the statistics we collect on consumers and
* providers.
OpenPOWER on IntegriCloud