diff --git a/src/util/sysinfo.c b/src/util/sysinfo.c
index de3108a..53636b6 100644
--- a/src/util/sysinfo.c
+++ b/src/util/sysinfo.c
@@ -521,16 +521,18 @@ virSysinfoBIOSFormat(virBufferPtr buf, virSysinfoDefPtr def)
!def->bios_date && !def->bios_release)
return;
- virBufferAddLit(buf, " \n");
- virBufferEscapeString(buf, " %s\n",
+ virBufferAddLit(buf, "\n");
+ virBufferAdjustIndent(buf, 2);
+ virBufferEscapeString(buf, "%s\n",
def->bios_vendor);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->bios_version);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->bios_date);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->bios_release);
- virBufferAddLit(buf, " \n");
+ virBufferAdjustIndent(buf, -2);
+ virBufferAddLit(buf, "\n");
}
static void
@@ -541,22 +543,24 @@ virSysinfoSystemFormat(virBufferPtr buf, virSysinfoDefPtr def)
!def->system_uuid && !def->system_sku && !def->system_family)
return;
- virBufferAddLit(buf, " \n");
- virBufferEscapeString(buf, " %s\n",
+ virBufferAddLit(buf, "\n");
+ virBufferAdjustIndent(buf, 2);
+ virBufferEscapeString(buf, "%s\n",
def->system_manufacturer);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_product);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_version);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_serial);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_uuid);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_sku);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
def->system_family);
- virBufferAddLit(buf, " \n");
+ virBufferAdjustIndent(buf, -2);
+ virBufferAddLit(buf, "\n");
}
static void
@@ -581,8 +585,8 @@ virSysinfoProcessorFormat(virBufferPtr buf, virSysinfoDefPtr def)
!processor->processor_part_number)
continue;
- virBufferAddLit(buf, " \n");
- virBufferAdjustIndent(buf, 4);
+ virBufferAddLit(buf, "\n");
+ virBufferAdjustIndent(buf, 2);
virBufferEscapeString(buf,
"%s\n",
processor->processor_socket_destination);
@@ -606,8 +610,8 @@ virSysinfoProcessorFormat(virBufferPtr buf, virSysinfoDefPtr def)
processor->processor_serial_number);
virBufferEscapeString(buf, "%s\n",
processor->processor_part_number);
- virBufferAdjustIndent(buf, -4);
- virBufferAddLit(buf, " \n");
+ virBufferAdjustIndent(buf, -2);
+ virBufferAddLit(buf, "\n");
}
}
@@ -632,34 +636,30 @@ virSysinfoMemoryFormat(virBufferPtr buf, virSysinfoDefPtr def)
!memory->memory_part_number)
continue;
- virBufferAddLit(buf, " \n");
- virBufferEscapeString(buf, " %s\n",
+ virBufferAddLit(buf, "\n");
+ virBufferAdjustIndent(buf, 2);
+ virBufferEscapeString(buf, "%s\n",
memory->memory_size);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_form_factor);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_locator);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_bank_locator);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_type);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_type_detail);
- virBufferEscapeString(buf, " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_speed);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_manufacturer);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_serial_number);
- virBufferEscapeString(buf,
- " %s\n",
+ virBufferEscapeString(buf, "%s\n",
memory->memory_part_number);
- virBufferAddLit(buf, " \n");
+ virBufferAdjustIndent(buf, -2);
+ virBufferAddLit(buf, "\n");
}
}
@@ -684,12 +684,14 @@ virSysinfoFormat(virBufferPtr buf, virSysinfoDefPtr def)
}
virBufferAsprintf(buf, "\n", type);
+ virBufferAdjustIndent(buf, 2);
virSysinfoBIOSFormat(buf, def);
virSysinfoSystemFormat(buf, def);
virSysinfoProcessorFormat(buf, def);
virSysinfoMemoryFormat(buf, def);
+ virBufferAdjustIndent(buf, -2);
virBufferAddLit(buf, "\n");
if (virBufferError(buf)) {