[libvirt] [PATCH] virNodeDeviceCapPCIDefFormat: Drop useless space before end of tags

Michal Privoznik posted 1 patch 4 years, 10 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/d5c5d615141343e7016150b6bf2d44e754d08547.1560498766.git.mprivozn@redhat.com
src/conf/node_device_conf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[libvirt] [PATCH] virNodeDeviceCapPCIDefFormat: Drop useless space before end of tags
Posted by Michal Privoznik 4 years, 10 months ago
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

Pushed under trivial rule.

 src/conf/node_device_conf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c
index 1db045d9ac..4ef92d5129 100644
--- a/src/conf/node_device_conf.c
+++ b/src/conf/node_device_conf.c
@@ -227,14 +227,14 @@ virNodeDeviceCapPCIDefFormat(virBufferPtr buf,
         virBufferEscapeString(buf, ">%s</product>\n",
                               data->pci_dev.product_name);
     else
-        virBufferAddLit(buf, " />\n");
+        virBufferAddLit(buf, "/>\n");
     virBufferAsprintf(buf, "<vendor id='0x%04x'",
                       data->pci_dev.vendor);
     if (data->pci_dev.vendor_name)
         virBufferEscapeString(buf, ">%s</vendor>\n",
                               data->pci_dev.vendor_name);
     else
-        virBufferAddLit(buf, " />\n");
+        virBufferAddLit(buf, "/>\n");
     if (data->pci_dev.flags & VIR_NODE_DEV_CAP_FLAG_PCI_PHYSICAL_FUNCTION) {
         virBufferAddLit(buf, "<capability type='phys_function'>\n");
         virBufferAdjustIndent(buf, 2);
-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list