From d8019f52885d7f707af7e9afb4dda496c6a652f2 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 7 Nov 2014 13:36:12 +0100 Subject: 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 --- mate-session/gs-idle-monitor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mate-session/gs-idle-monitor.c') 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); } -- cgit v1.2.1