summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-04-20 17:07:55 +0000
committerpjd <pjd@FreeBSD.org>2004-04-20 17:07:55 +0000
commit39b39ae54473b36733a7c600c1a13b0b29ebae70 (patch)
tree33e7a0482b305ba51c947d82f1e7b2285981607e /sys/geom
parent9e96265f37a3616b591223fdbb509c997392dcb8 (diff)
downloadFreeBSD-src-39b39ae54473b36733a7c600c1a13b0b29ebae70.zip
FreeBSD-src-39b39ae54473b36733a7c600c1a13b0b29ebae70.tar.gz
- Don't check if 'gp' is non-NULL, it always is and GEOM wants to
dump geom configuration when 'pp' and 'cp' are NULL. - Use tabs instead of spaces.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/concat/g_concat.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c
index 5a59863..2c6d9e2 100644
--- a/sys/geom/concat/g_concat.c
+++ b/sys/geom/concat/g_concat.c
@@ -750,28 +750,28 @@ static void
g_concat_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
struct g_consumer *cp, struct g_provider *pp)
{
- struct g_concat_softc *sc;
+ struct g_concat_softc *sc;
- sc = gp->softc;
- if (sc == NULL)
- return;
- if (gp != NULL) {
- sbuf_printf(sb, "%s<id>%zu</id>\n", indent, sc->sc_id);
+ sc = gp->softc;
+ if (sc == NULL)
+ return;
+ if (pp == NULL && cp == NULL) {
+ sbuf_printf(sb, "%s<id>%zu</id>\n", indent, sc->sc_id);
switch (sc->sc_type) {
case G_CONCAT_TYPE_AUTOMATIC:
- sbuf_printf(sb, "%s<type>%s</type>\n", indent,
+ sbuf_printf(sb, "%s<type>%s</type>\n", indent,
"automatic");
break;
case G_CONCAT_TYPE_MANUAL:
- sbuf_printf(sb, "%s<type>%s</type>\n", indent,
+ sbuf_printf(sb, "%s<type>%s</type>\n", indent,
"manual");
break;
default:
- sbuf_printf(sb, "%s<type>%s</type>\n", indent,
+ sbuf_printf(sb, "%s<type>%s</type>\n", indent,
"unknown");
break;
}
- }
+ }
}
DECLARE_GEOM_CLASS(g_concat_class, g_concat);
OpenPOWER on IntegriCloud