Fix dumpconf so libdisk can grok its output. We weren't checking

if indent was NULL. Consequently we always emitted the XML format.
This commit is contained in:
Marcel Moolenaar 2002-11-02 11:45:54 +00:00
parent 0423916a71
commit 0df5787813
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106340

View file

@ -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");
}
}