]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Re-format literal strings in virXMLEmitWarning
authorPeter Krempa <pkrempa@redhat.com>
Mon, 29 Oct 2012 13:38:24 +0000 (14:38 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 29 Oct 2012 14:19:26 +0000 (15:19 +0100)
And drop a stray space at the end of the first line of the warning.

src/util/xml.c

index dad922715d9aa9e9da4af087d3cb163c8c0b38c0..30323b39e57e8b1417536a7254683c0025533fe8 100644 (file)
@@ -796,13 +796,15 @@ static int virXMLEmitWarning(int fd,
                              const char *cmd)
 {
     size_t len;
-    const char *prologue = "<!--\n\
-WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE \n\
-OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n\
-  virsh ";
-    const char *epilogue = "\n\
-or other application using the libvirt API.\n\
--->\n\n";
+    const char *prologue =
+        "<!--\n"
+        "WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE\n"
+        "OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n"
+        "  virsh ";
+    const char *epilogue =
+        "\n"
+        "or other application using the libvirt API.\n"
+        "-->\n\n";
 
     if (fd < 0 || !cmd) {
         errno = EINVAL;