summaryrefslogtreecommitdiff
path: root/SpiceXPI
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-03-05 22:08:43 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-05 22:10:20 +0100
commita149653a803d9d2034390e5ed5401067400dc61f (patch)
treea86333797b218a62c164c6648b9edf18fdacc84b /SpiceXPI
parent0b18f80ec1a26026b7380cc3d891777895f64f97 (diff)
Use G_GUINT64_FORMAT to print guint64 values
gcc complains about the format string being wrong otherwise (the modifier to use is compiler/architecture dependant).
Diffstat (limited to 'SpiceXPI')
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index f291888..e53639e 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -568,7 +568,7 @@ void nsPluginInstance::Connect()
}
pid_t child = fork();
- g_debug("child pid: %llu", (guint64)child);
+ g_debug("child pid: %"G_GUINT64_FORMAT, (guint64)child);
if (child == 0)
{
close(pipe_fds[1]);
@@ -770,7 +770,7 @@ void nsPluginInstance::CallOnDisconnected(int code)
void nsPluginInstance::SigchldRoutine(int sig, siginfo_t *info, void *uap)
{
- g_debug("child finished, pid: %llu", (guint64)info->si_pid);
+ g_debug("child finished, pid: %"G_GUINT64_FORMAT, (guint64)info->si_pid);
int exit_code;
waitpid(info->si_pid, &exit_code, 0);