From fb5206d9c36d85a913a2ae05cb97b2629f345094 Mon Sep 17 00:00:00 2001 From: Kulikov Vasiliy Date: Wed, 14 Jul 2010 22:05:58 +0400 Subject: [PATCH] staging: msm: formatting of pointers in printk() Use %p instead of %08x in printk(). Signed-off-by: Kulikov Vasiliy Acked-by: David Brown Acked-by: Daniel Walker Signed-off-by: Greg Kroah-Hartman --- drivers/staging/msm/mdp4_overlay.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/msm/mdp4_overlay.c b/drivers/staging/msm/mdp4_overlay.c index 304bb8297635..de284c28faa1 100644 --- a/drivers/staging/msm/mdp4_overlay.c +++ b/drivers/staging/msm/mdp4_overlay.c @@ -874,8 +874,8 @@ struct mdp4_overlay_pipe *mdp4_overlay_pipe_alloc(void) if (pipe->pipe_ndx == 0) { pipe->pipe_ndx = i + 1; /* start from 1 */ init_completion(&pipe->comp); - printk(KERN_INFO "mdp4_overlay_pipe_alloc: pipe=%x ndx=%d\n", - (int)pipe, pipe->pipe_ndx); + printk(KERN_INFO "mdp4_overlay_pipe_alloc: pipe=%p ndx=%d\n", + pipe, pipe->pipe_ndx); return pipe; } pipe++; @@ -887,8 +887,8 @@ struct mdp4_overlay_pipe *mdp4_overlay_pipe_alloc(void) void mdp4_overlay_pipe_free(struct mdp4_overlay_pipe *pipe) { - printk(KERN_INFO "mdp4_overlay_pipe_free: pipe=%x ndx=%d\n", - (int)pipe, pipe->pipe_ndx); + printk(KERN_INFO "mdp4_overlay_pipe_free: pipe=%p ndx=%d\n", + pipe, pipe->pipe_ndx); memset(pipe, 0, sizeof(*pipe)); }