xml: avoid compiler warning

Detected by clang.

* src/util/xml.c (virXPathStringLimit): Use %zd, not obsolete %Zd.
This commit is contained in:
Eric Blake 2011-02-14 13:38:55 -07:00
parent 13e9ba7c2b
commit 83a0489a21

View File

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