Fix warning in debug output

This commit is contained in:
Daniel P. Berrange 2008-01-08 17:52:10 +00:00
parent 8cd4774468
commit 8796a9ff74
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Jan 8 12:48:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* 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 <berrange@redhat.com>
* src/util.c: Fix addr passed to free() in error cleanup

View File

@ -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;
}