summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-11-02 11:45:54 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-11-02 11:45:54 +0000
commit0df57878134a03124c08a7932bc3a9d685284259 (patch)
tree64cf0a606e9ed2edf99754fd65cab24ee625873b
parent0423916a71bbc818931ab87e42daec6557377ce2 (diff)
Notes
-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 6f90507461d9..5d88f5e9c756 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");
}
}