From 83a0489a21c79cea2aa86c3c937c135295257a56 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 14 Feb 2011 13:38:55 -0700 Subject: [PATCH] xml: avoid compiler warning Detected by clang. * src/util/xml.c (virXPathStringLimit): Use %zd, not obsolete %Zd. --- src/util/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }