summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom.h2
-rw-r--r--sys/geom/geom_dev.c14
2 files changed, 7 insertions, 9 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index aed9498..53f7356 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -172,7 +172,7 @@ struct g_provider {
};
/* geom_dev.c */
-int g_dev_print(void);
+void g_dev_print(void);
/* geom_dump.c */
void g_hexdump(void *ptr, int length);
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c
index 65ae722..a00ce6a 100644
--- a/sys/geom/geom_dev.c
+++ b/sys/geom/geom_dev.c
@@ -76,19 +76,17 @@ static struct g_class g_dev_class = {
.taste = g_dev_taste,
};
-int
+void
g_dev_print(void)
{
struct g_geom *gp;
+ char const *p = "";
- g_waitidle();
- if (LIST_EMPTY(&g_dev_class.geom))
- return (0);
- printf("List of GEOM disk devices:\n ");
- LIST_FOREACH(gp, &g_dev_class.geom, geom)
- printf(" %s", gp->name);
+ LIST_FOREACH(gp, &g_dev_class.geom, geom) {
+ printf("%s%s", p, gp->name);
+ p = " ";
+ }
printf("\n");
- return (1);
}
/*
OpenPOWER on IntegriCloud