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:
parent
0423916a71
commit
0df5787813
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user