Skip to content

Commit

Permalink
sh: clkfwk: fix up compiler warnings.
Browse files Browse the repository at this point in the history
  CC      drivers/sh/clk/core.o
drivers/sh/clk/core.c: In function 'clk_round_parent':
drivers/sh/clk/core.c:574: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int'
drivers/sh/clk/core.c:594: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'unsigned int'

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Nov 10, 2010
1 parent a7bcf21 commit ed10b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/sh/clk/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ long clk_round_parent(struct clk *clk, unsigned long target,
*best_freq = freq_max;
}

pr_debug("too low freq %lu, error %lu\n", freq->frequency,
pr_debug("too low freq %u, error %lu\n", freq->frequency,
target - freq_max);

if (!error)
Expand All @@ -591,7 +591,7 @@ long clk_round_parent(struct clk *clk, unsigned long target,
*best_freq = freq_min;
}

pr_debug("too high freq %lu, error %lu\n", freq->frequency,
pr_debug("too high freq %u, error %lu\n", freq->frequency,
freq_min - target);

if (!error)
Expand Down

0 comments on commit ed10b49

Please sign in to comment.