diff options
author | marcel <marcel@FreeBSD.org> | 2002-11-02 11:45:54 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-11-02 11:45:54 +0000 |
commit | 3ff7b038063976d0bcd1bea1983727b407f626c7 (patch) | |
tree | 64cf0a606e9ed2edf99754fd65cab24ee625873b /sys/geom/geom_gpt.c | |
parent | ad676f7460778ee5ad7b7273396d4e23e0105df9 (diff) | |
download | FreeBSD-src-3ff7b038063976d0bcd1bea1983727b407f626c7.zip FreeBSD-src-3ff7b038063976d0bcd1bea1983727b407f626c7.tar.gz |
Fix dumpconf so libdisk can grok its output. We weren't checking
if indent was NULL. Consequently we always emitted the XML format.
Diffstat (limited to 'sys/geom/geom_gpt.c')
-rw-r--r-- | sys/geom/geom_gpt.c | 8 |
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"); } } |