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