Skip to content

Commit

Permalink
powerpc/ftrace: Fix printf format warning
Browse files Browse the repository at this point in the history
'tramp' is an unsigned long, so print it with %lx.

Fixes the following build warning:
arch/powerpc/kernel/ftrace.c:291: error: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘long unsigned int’

Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
mpe authored and paulusmack committed Apr 7, 2009
1 parent f4952f6 commit 7ddb7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ __ftrace_make_nop(struct module *mod,
if (tramp & 0x8000)
tramp -= 0x10000;

pr_debug(" %x ", tramp);
pr_debug(" %lx ", tramp);

if (tramp != addr) {
printk(KERN_ERR
Expand Down

0 comments on commit 7ddb7ad

Please sign in to comment.