summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2008-02-05 00:48:13 +0100
committerThomas Gleixner <tglx@linutronix.de>2008-02-17 17:29:38 +0100
commitdb4315d6f53edc2cc0b0b06fce1beffebb119c71 (patch)
tree4c0c4a3f86e9f319e6aeda3210e33a51b38a7fba /kernel/time
parent1309d4e68497184d2fd87e892ddf14076c2bda98 (diff)
downloadkernel-crypto-db4315d6f53edc2cc0b0b06fce1beffebb119c71.tar.gz
kernel-crypto-db4315d6f53edc2cc0b0b06fce1beffebb119c71.tar.xz
kernel-crypto-db4315d6f53edc2cc0b0b06fce1beffebb119c71.zip
timer_list: print relative expiry time signed
Relative expiry time can get negative, so it should be signed. Signed-off-by: Pavel Machek <Pavel@suse.cz> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/timer_list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
index d3d94c1a0fd..67fe8fc21fb 100644
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -65,9 +65,9 @@ print_timer(struct seq_file *m, struct hrtimer *timer, int idx, u64 now)
SEQ_printf(m, ", %s/%d", tmp, timer->start_pid);
#endif
SEQ_printf(m, "\n");
- SEQ_printf(m, " # expires at %Lu nsecs [in %Lu nsecs]\n",
+ SEQ_printf(m, " # expires at %Lu nsecs [in %Ld nsecs]\n",
(unsigned long long)ktime_to_ns(timer->expires),
- (unsigned long long)(ktime_to_ns(timer->expires) - now));
+ (long long)(ktime_to_ns(timer->expires) - now));
}
static void