[libvirt] [PATCH] virtlogd: use %llu to print 64bit types

Daniel P. Berrange berrange at redhat.com
Thu Nov 26 18:36:10 UTC 2015


On Thu, Nov 26, 2015 at 07:33:38PM +0100, Guido Günther wrote:
> Otherwise we fail on 32bit with:
> 
> CC     logging/virtlogd-log_daemon_dispatch.o
> logging/log_daemon_dispatch.c: In function 'virLogManagerProtocolDispatchDomainReadLogFile':
> logging/log_daemon_dispatch.c:120:9: error: format '%zu' expects argument of type 'size_t', but argument 7 has type 'uint64_t' [-Werror=format]
> ---
>  src/logging/log_daemon_dispatch.c | 5 +++--
>  tests/virrotatingfiletest.c       | 5 +++--
>  2 files changed, 6 insertions(+), 4 deletions(-)

ACK

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list