summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-07 13:36:12 +0100
committerinfirit <[email protected]>2014-11-07 14:31:52 +0100
commitd8019f52885d7f707af7e9afb4dda496c6a652f2 (patch)
tree0b46ace1cffa4c1421b517627c5bd95c7506b721
parent97a9f2c181817b09edd0783ed808dbd1ee49b36a (diff)
downloadmate-session-manager-d8019f52885d7f707af7e9afb4dda496c6a652f2.tar.bz2
mate-session-manager-d8019f52885d7f707af7e9afb4dda496c6a652f2.tar.xz
Fix usage of %lld for 64-bit formats
Scott already did some work on this, update to how gnome-session handles this. Based on gnome-session commit: b2ad0abf2263b4af044388035df8993db9223a1b From: Owen W. Taylor <[email protected]>
-rw-r--r--mate-session/gs-idle-monitor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mate-session/gs-idle-monitor.c b/mate-session/gs-idle-monitor.c
index 7d56ac0..773ddea 100644
--- a/mate-session/gs-idle-monitor.c
+++ b/mate-session/gs-idle-monitor.c
@@ -193,7 +193,7 @@ handle_alarm_notify_event (GSIdleMonitor *monitor,
return;
}
- g_debug ("Watch %d fired, idle time = %ld",
+ g_debug ("Watch %d fired, idle time = %" G_GINT64_FORMAT,
watch->id,
_xsyncvalue_to_int64 (alarm_event->counter_value));
@@ -451,22 +451,22 @@ _xsync_alarm_set (GSIdleMonitor *monitor,
attr.trigger.wait_value = _int64_to_xsyncvalue (_xsyncvalue_to_int64 (watch->interval) - 1);
attr.trigger.test_type = XSyncPositiveTransition;
if (watch->xalarm_positive != None) {
- g_debug ("GSIdleMonitor: updating alarm for positive transition wait=%ld",
+ g_debug ("GSIdleMonitor: updating alarm for positive transition wait=%" G_GINT64_FORMAT,
_xsyncvalue_to_int64 (attr.trigger.wait_value));
XSyncChangeAlarm (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), watch->xalarm_positive, flags, &attr);
} else {
- g_debug ("GSIdleMonitor: creating new alarm for positive transition wait=%ld",
+ g_debug ("GSIdleMonitor: creating new alarm for positive transition wait=%" G_GINT64_FORMAT,
_xsyncvalue_to_int64 (attr.trigger.wait_value));
watch->xalarm_positive = XSyncCreateAlarm (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), flags, &attr);
}
attr.trigger.test_type = XSyncNegativeTransition;
if (watch->xalarm_negative != None) {
- g_debug ("GSIdleMonitor: updating alarm for negative transition wait=%ld",
+ g_debug ("GSIdleMonitor: updating alarm for negative transition wait=%" G_GINT64_FORMAT,
_xsyncvalue_to_int64 (attr.trigger.wait_value));
XSyncChangeAlarm (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), watch->xalarm_negative, flags, &attr);
} else {
- g_debug ("GSIdleMonitor: creating new alarm for negative transition wait=%ld",
+ g_debug ("GSIdleMonitor: creating new alarm for negative transition wait=%" G_GINT64_FORMAT,
_xsyncvalue_to_int64 (attr.trigger.wait_value));
watch->xalarm_negative = XSyncCreateAlarm (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), flags, &attr);
}