[PATCH 2/2] powerpc/ftrace: Fix printf format warning

2009-04-06 Thread Michael Ellerman
'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 mich...@ellerman.id.au
---
 arch/powerpc/kernel/ftrace.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c
index e9d9d38..e1edf5a 100644
--- a/arch/powerpc/kernel/ftrace.c
+++ b/arch/powerpc/kernel/ftrace.c
@@ -288,7 +288,7 @@ __ftrace_make_nop(struct module *mod,
if (tramp  0x8000)
tramp -= 0x1;
 
-   pr_debug( %x , tramp);
+   pr_debug( %lx , tramp);
 
if (tramp != addr) {
printk(KERN_ERR
-- 
1.6.2.1

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 2/2] powerpc/ftrace: Fix printf format warning

2009-04-06 Thread Steven Rostedt

On Tue, 2009-04-07 at 00:40 +1000, Michael Ellerman wrote:
 '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 mich...@ellerman.id.au

Acked-by: Steven Rostedt rost...@goodmis.org

-- Steve

 ---
  arch/powerpc/kernel/ftrace.c |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
 
 diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c
 index e9d9d38..e1edf5a 100644
 --- a/arch/powerpc/kernel/ftrace.c
 +++ b/arch/powerpc/kernel/ftrace.c
 @@ -288,7 +288,7 @@ __ftrace_make_nop(struct module *mod,
   if (tramp  0x8000)
   tramp -= 0x1;
  
 - pr_debug( %x , tramp);
 + pr_debug( %lx , tramp);
  
   if (tramp != addr) {
   printk(KERN_ERR

___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev