[Pkg-libvirt-commits] [libguestfs] 168/384: gobject: fix printf conversion specifier
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:56:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit cfc142399f78200f520768b111a1fa7178aee305
Author: Pino Toscano <ptoscano at redhat.com>
Date: Mon Jan 19 16:20:44 2015 +0100
gobject: fix printf conversion specifier
Use PRIu64 to correctly handle uint64_t.
---
generator/gobject.ml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/generator/gobject.ml b/generator/gobject.ml
index 5deb87e..5b07edd 100644
--- a/generator/gobject.ml
+++ b/generator/gobject.ml
@@ -722,6 +722,7 @@ let generate_gobject_session_source () =
#include <stdint.h>
#include <stdio.h>
#include <string.h>
+ #include <inttypes.h>
/* Error quark */
@@ -780,7 +781,7 @@ guestfs_session_event_from_guestfs_event (uint64_t event)
pr "
}
- g_warning (\"guestfs_session_event_from_guestfs_event: invalid event %%lu\",
+ g_warning (\"guestfs_session_event_from_guestfs_event: invalid event %%\" PRIu64,
event);
return UINT32_MAX;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list