From: Daniel P. Berrange Date: Tue, 8 Jan 2008 17:52:10 +0000 (+0000) Subject: Fix warning in debug output X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8796a9ff7499017c6e486bbd90b078f498950349;p=libvirt.git Fix warning in debug output --- diff --git a/ChangeLog b/ChangeLog index 8646a62df0..104ce2e50f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jan 8 12:48:00 EST 2008 Daniel P. Berrange + + * src/util.c: cast off_t to int in debug output to avoid warning + Tue Jan 8 11:12:00 EST 2008 Daniel P. Berrange * src/util.c: Fix addr passed to free() in error cleanup diff --git a/src/util.c b/src/util.c index 01fc6e93f4..a4112370e9 100644 --- a/src/util.c +++ b/src/util.c @@ -297,7 +297,7 @@ int virFileReadAll(const char *path, } if (st.st_size > maxlen) { - virLog("File '%s' is too large %d, max %d", path, st.st_size, maxlen); + virLog("File '%s' is too large %d, max %d", path, (int)st.st_size, maxlen); goto error; }