]> xenbits.xensource.com Git - libvirt.git/commitdiff
xml: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Mon, 14 Feb 2011 20:38:55 +0000 (13:38 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 14 Feb 2011 20:39:03 +0000 (13:39 -0700)
Detected by clang.

* src/util/xml.c (virXPathStringLimit): Use %zd, not obsolete %Zd.

src/util/xml.c

index de5e9de17959b9d02512f4e86ead9b57ce79496d..ff340d80a6cf1a97880ab2aa7c0f74d8bb77961a 100644 (file)
@@ -105,7 +105,7 @@ virXPathStringLimit(const char *xpath,
 
     if (tmp != NULL && strlen(tmp) >= maxlen) {
         virXMLError(VIR_ERR_INTERNAL_ERROR,
-                    _("\'%s\' value longer than %Zd bytes in virXPathStringLimit()"),
+                    _("\'%s\' value longer than %zd bytes in virXPathStringLimit()"),
                     xpath, maxlen);
             return NULL;
     }