Commit 44737589 authored by Adrian Hunter's avatar Adrian Hunter Committed by Artem Bityutskiy

UBIFS: fix 64-bit divisions in debug print

Signed-off-by: default avatarAdrian Hunter <adrian.hunter@nokia.com>
parent cb54ef8b
...@@ -315,8 +315,9 @@ static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf) ...@@ -315,8 +315,9 @@ static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf)
if (wbuf->no_timer) if (wbuf->no_timer)
return; return;
dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead, dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead,
ktime_to_ns(wbuf->softlimit)/USEC_PER_SEC, div_u64(ktime_to_ns(wbuf->softlimit), USEC_PER_SEC),
(ktime_to_ns(wbuf->softlimit) + wbuf->delta)/USEC_PER_SEC); div_u64(ktime_to_ns(wbuf->softlimit) + wbuf->delta,
USEC_PER_SEC));
hrtimer_start_range_ns(&wbuf->timer, wbuf->softlimit, wbuf->delta, hrtimer_start_range_ns(&wbuf->timer, wbuf->softlimit, wbuf->delta,
HRTIMER_MODE_REL); HRTIMER_MODE_REL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment