Commit 971e0c9b9d1749e9988a189c787b140e6a0750e8

Authored by Tomi Valkeinen
Committed by Rajendra Nayak
1 parent 23ba71fc3e

ARM: OMAP2+: fix rate prints

Printing with unsigned long rates with %ld gives wrong result if the
rate is high enough. Fix this by using %lu.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

arch/arm/mach-omap2/clkt_dpll.c
... ... @@ -306,7 +306,7 @@
306 306  
307 307 ref_rate = __clk_get_rate(dd->clk_ref);
308 308 clk_name = __clk_get_name(hw->clk);
309   - pr_debug("clock: %s: starting DPLL round_rate, target rate %ld\n",
  309 + pr_debug("clock: %s: starting DPLL round_rate, target rate %lu\n",
310 310 clk_name, target_rate);
311 311  
312 312 scaled_rt_rp = target_rate / (ref_rate / DPLL_SCALE_FACTOR);
... ... @@ -342,7 +342,7 @@
342 342 if (r == DPLL_MULT_UNDERFLOW)
343 343 continue;
344 344  
345   - pr_debug("clock: %s: m = %d: n = %d: new_rate = %ld\n",
  345 + pr_debug("clock: %s: m = %d: n = %d: new_rate = %lu\n",
346 346 clk_name, m, n, new_rate);
347 347  
348 348 if (target_rate == new_rate) {
... ... @@ -354,7 +354,7 @@
354 354 }
355 355  
356 356 if (target_rate != new_rate) {
357   - pr_debug("clock: %s: cannot round to rate %ld\n",
  357 + pr_debug("clock: %s: cannot round to rate %lu\n",
358 358 clk_name, target_rate);
359 359 return ~0;
360 360 }