From: Eric Blake Date: Mon, 14 Feb 2011 20:38:55 +0000 (-0700) Subject: xml: avoid compiler warning X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=83a0489a21c79cea2aa86c3c937c135295257a56;p=libvirt.git xml: avoid compiler warning Detected by clang. * src/util/xml.c (virXPathStringLimit): Use %zd, not obsolete %Zd. --- diff --git a/src/util/xml.c b/src/util/xml.c index de5e9de179..ff340d80a6 100644 --- a/src/util/xml.c +++ b/src/util/xml.c @@ -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; }