提交 8796a9ff 编写于 作者: D Daniel P. Berrange

Fix warning in debug output

上级 8cd47744
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> 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 * src/util.c: Fix addr passed to free() in error cleanup
......
...@@ -297,7 +297,7 @@ int virFileReadAll(const char *path, ...@@ -297,7 +297,7 @@ int virFileReadAll(const char *path,
} }
if (st.st_size > maxlen) { 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; goto error;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册