[gnome-power-manager/gnome-2-32] Cast idle_time_in_msec to appropriate type
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-32] Cast idle_time_in_msec to appropriate type
- Date: Tue, 17 Aug 2010 14:40:57 +0000 (UTC)
commit 227df8c3d4535269b74dc20fc66597cf855af97a
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Aug 17 16:37:20 2010 +0200
Cast idle_time_in_msec to appropriate type
-Werror is used but newer gcc have a new check, and it makes the
compilation fail with gpm-idle.c:295: error: format â??%lldâ?? expects type
â??long long intâ??, but argument 5 has type â??gint64â??
src/gpm-idle.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-idle.c b/src/gpm-idle.c
index 70dae7c..8518110 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -293,7 +293,7 @@ gpm_idle_set_timeout_dim (GpmIdle *idle, guint timeout)
idle_time_in_msec = egg_idletime_get_time (idle->priv->idletime);
timeout_adjusted = gpm_idle_adjust_timeout_dim (idle_time_in_msec / 1000, timeout);
egg_debug ("Current idle time=%lldms, timeout was %us, becomes %us after adjustment",
- idle_time_in_msec, timeout, timeout_adjusted);
+ (long long int)idle_time_in_msec, timeout, timeout_adjusted);
timeout = timeout_adjusted;
egg_debug ("Setting dim idle timeout: %ds", timeout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]