mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
timer_list: Print offset as signed integer
The offset of a hrtimer base may be negative. Print those values correctly. Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-3-095357392669@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
754e38d2d1
commit
bb2705b4e0
@@ -101,8 +101,8 @@ print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now)
|
||||
|
||||
SEQ_printf(m, " .resolution: %u nsecs\n", hrtimer_resolution);
|
||||
#ifdef CONFIG_HIGH_RES_TIMERS
|
||||
SEQ_printf(m, " .offset: %Lu nsecs\n",
|
||||
(unsigned long long) ktime_to_ns(base->offset));
|
||||
SEQ_printf(m, " .offset: %Ld nsecs\n",
|
||||
(long long) base->offset);
|
||||
#endif
|
||||
SEQ_printf(m, "active timers:\n");
|
||||
print_active_timers(m, base, now + ktime_to_ns(base->offset));
|
||||
|
||||
Reference in New Issue
Block a user