mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virNodeDeviceCapPCIDefFormat: Drop useless space before end of tags
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
64ac2b7786
commit
d5c5d61514
@ -227,14 +227,14 @@ virNodeDeviceCapPCIDefFormat(virBufferPtr buf,
|
|||||||
virBufferEscapeString(buf, ">%s</product>\n",
|
virBufferEscapeString(buf, ">%s</product>\n",
|
||||||
data->pci_dev.product_name);
|
data->pci_dev.product_name);
|
||||||
else
|
else
|
||||||
virBufferAddLit(buf, " />\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
virBufferAsprintf(buf, "<vendor id='0x%04x'",
|
virBufferAsprintf(buf, "<vendor id='0x%04x'",
|
||||||
data->pci_dev.vendor);
|
data->pci_dev.vendor);
|
||||||
if (data->pci_dev.vendor_name)
|
if (data->pci_dev.vendor_name)
|
||||||
virBufferEscapeString(buf, ">%s</vendor>\n",
|
virBufferEscapeString(buf, ">%s</vendor>\n",
|
||||||
data->pci_dev.vendor_name);
|
data->pci_dev.vendor_name);
|
||||||
else
|
else
|
||||||
virBufferAddLit(buf, " />\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
if (data->pci_dev.flags & VIR_NODE_DEV_CAP_FLAG_PCI_PHYSICAL_FUNCTION) {
|
if (data->pci_dev.flags & VIR_NODE_DEV_CAP_FLAG_PCI_PHYSICAL_FUNCTION) {
|
||||||
virBufferAddLit(buf, "<capability type='phys_function'>\n");
|
virBufferAddLit(buf, "<capability type='phys_function'>\n");
|
||||||
virBufferAdjustIndent(buf, 2);
|
virBufferAdjustIndent(buf, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user