[Pkg-libvirt-commits] [libguestfs] 118/146: gobject: fix printf conversion specifier

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 1af55a8f225c904c05cdc5ca505cd8952991f367
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.
    
    (cherry picked from commit cfc142399f78200f520768b111a1fa7178aee305)
---
 generator/gobject.ml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/generator/gobject.ml b/generator/gobject.ml
index 499837a..661fa48 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