timer_list: print relative expiry time signed
authorPavel Machek <pavel@ucw.cz>
Mon, 4 Feb 2008 23:48:13 +0000 (00:48 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 17 Feb 2008 16:29:38 +0000 (17:29 +0100)
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>
kernel/time/timer_list.c

index d3d94c1a0fd2600a5c8d17b1b90801b449f880df..67fe8fc21fb130fd906ef050be927dc23d80fa02 100644 (file)
@@ -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