mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 06:44:31 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106340
|
@ -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…
Reference in a new issue