diff options
author | ivoras <ivoras@FreeBSD.org> | 2013-04-15 15:55:40 +0000 |
---|---|---|
committer | ivoras <ivoras@FreeBSD.org> | 2013-04-15 15:55:40 +0000 |
commit | 4893ec0b76fa0d03524f1cd3cebbd1c9a143d2f7 (patch) | |
tree | b5a58dbd3c3e9f960af5c3e04ca74ccba8d72dfc /sys/geom/geom_dump.c | |
parent | d9c22bdbc9c9f5cdee2a672851e8f18a8e41fad8 (diff) | |
download | FreeBSD-src-4893ec0b76fa0d03524f1cd3cebbd1c9a143d2f7.zip FreeBSD-src-4893ec0b76fa0d03524f1cd3cebbd1c9a143d2f7.tar.gz |
Introduce a symbol for the GEOM class name instead of using the ad-hoc string
constant.
Diffstat (limited to 'sys/geom/geom_dump.c')
-rw-r--r-- | sys/geom/geom_dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_dump.c b/sys/geom/geom_dump.c index 6f678cf..d5e1f30 100644 --- a/sys/geom/geom_dump.c +++ b/sys/geom/geom_dump.c @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); #include <geom/geom.h> #include <geom/geom_int.h> +#include <geom/geom_disk.h> static void @@ -146,7 +147,7 @@ g_conftxt(void *p, int flag) sb = p; g_topology_assert(); LIST_FOREACH(mp, &g_classes, class) { - if (!strcmp(mp->name, "DISK") || !strcmp(mp->name, "MD")) + if (!strcmp(mp->name, G_DISK_CLASS_NAME) || !strcmp(mp->name, "MD")) g_conftxt_class(sb, mp); } sbuf_finish(sb); |