summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_gpt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/geom/geom_gpt.c b/sys/geom/geom_gpt.c
index 6f90507..5d88f5e 100644
--- a/sys/geom/geom_gpt.c
+++ b/sys/geom/geom_gpt.c
@@ -124,9 +124,13 @@ g_gpt_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp,
if (pp != NULL) {
uuid = &gs->part[pp->index]->ent_type;
- sbuf_printf(sb, "%s<type>", indent);
+ if (indent != NULL)
+ sbuf_printf(sb, "%s<type>", indent);
+ else
+ sbuf_printf(sb, " ty ");
sbuf_printf_uuid(sb, uuid);
- sbuf_printf(sb, "</type>\n");
+ if (indent != NULL)
+ sbuf_printf(sb, "</type>\n");
}
}
OpenPOWER on IntegriCloud