1
0
Fork 0

UBIFS: fix 64-bit divisions in debug print

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
wifi-calibration
Adrian Hunter 2009-06-24 10:15:12 +03:00 committed by Artem Bityutskiy
parent cb54ef8b13
commit 4473758944
1 changed files with 3 additions and 2 deletions

View File

@ -315,8 +315,9 @@ static void new_wbuf_timer_nolock(struct ubifs_wbuf *wbuf)
if (wbuf->no_timer)
return;
dbg_io("set timer for jhead %d, %llu-%llu millisecs", wbuf->jhead,
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), 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_MODE_REL);
}