[gnome-power-manager] Cast idle_time_in_msec to appropriate type



commit 881673b83620d5029dc93e82c5a3bbf0d9a3af59
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 555c611..cfe4bb4 100644
--- a/src/gpm-idle.c
+++ b/src/gpm-idle.c
@@ -301,7 +301,7 @@ gpm_idle_set_timeout_dim (GpmIdle *idle, guint timeout)
 	idle_time_in_msec = gpm_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]