Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > ebe084c140192657f9094e135a84202c > files > 166

libvirt-0.8.2-29.el5.src.rpm

From e452613e3b7f4e0f395a8916773953a8fd54ea86 Mon Sep 17 00:00:00 2001
From: Eric Blake <eblake@redhat.com>
Date: Thu, 27 Oct 2011 15:40:29 -0600
Subject: [PATCH] xml: avoid compiler warning
To: libvir-list@redhat.com

prereq for https://bugzilla.redhat.com/show_bug.cgi?id=747514

Detected by clang.

* src/util/xml.c (virXPathStringLimit): Use %zd, not obsolete %Zd.
(cherry picked from commit 83a0489a21c79cea2aa86c3c937c135295257a56)

Signed-off-by: Daniel Veillard <veillard@redhat.com>
---
 src/util/xml.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/xml.c b/src/util/xml.c
index e2c2c6c..750834b 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;
     }
-- 
1.7.4.4