Skip to content

Commit

Permalink
staging: msm: formatting of pointers in printk()
Browse files Browse the repository at this point in the history
Use %p instead of %08x in printk().

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: David Brown <davidb@codeaurora.org>
Acked-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent bb8f3c0 commit fb5206d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/msm/mdp4_overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -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));
}

Expand Down

0 comments on commit fb5206d

Please sign in to comment.