From 6c23683558783dea30b5aeb9225f74e53ee8bb37 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 8 Jan 2018 20:27:32 +0100 Subject: msd-datetime-mechanism.c: Fix build warnings: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit format ‘%lld’ expects argument of type ‘long long int’, but argument has type ‘long int’ --- plugins/datetime/msd-datetime-mechanism.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/datetime/msd-datetime-mechanism.c b/plugins/datetime/msd-datetime-mechanism.c index 6fc3399..1a89234 100644 --- a/plugins/datetime/msd-datetime-mechanism.c +++ b/plugins/datetime/msd-datetime-mechanism.c @@ -287,7 +287,7 @@ _set_time (MsdDatetimeMechanism *mechanism, if (settimeofday (tv, NULL) != 0) { error = g_error_new (MSD_DATETIME_MECHANISM_ERROR, MSD_DATETIME_MECHANISM_ERROR_GENERAL, - "Error calling settimeofday({%lld,%lld}): %s", + "Error calling settimeofday({%ld,%ld}): %s", (gint64) tv->tv_sec, (gint64) tv->tv_usec, strerror (errno)); dbus_g_method_return_error (context, error); @@ -397,7 +397,7 @@ msd_datetime_mechanism_set_time (MsdDatetimeMechanism *mechanism, struct timeval tv; reset_killtimer (); - g_debug ("SetTime(%lld) called", seconds_since_epoch); + g_debug ("SetTime(%ld) called", seconds_since_epoch); tv.tv_sec = (time_t) seconds_since_epoch; tv.tv_usec = 0; @@ -412,7 +412,7 @@ msd_datetime_mechanism_adjust_time (MsdDatetimeMechanism *mechanism, struct timeval tv; reset_killtimer (); - g_debug ("AdjustTime(%lld) called", seconds_to_add); + g_debug ("AdjustTime(%ld) called", seconds_to_add); if (gettimeofday (&tv, NULL) != 0) { GError *error; -- cgit v1.2.1