Skip to contentSkip to conversation

staging: msm: formatting of pointers in printk()

PATCH Applied Kulikov Vasiliy 3 participants 3 messages Jul 14, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/11 staging: msm: formatting of pointers in printk()

Use %p instead of %08x in printk().

---
 drivers/staging/msm/mdp4_overlay.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/msm/mdp4_overlay.c +4 -4
index 304bb82..de284c2 100644
@@ -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));
 }
 
Signature · 1 line
1.7.0.4
#2 lore raw
Quoted 7 lines · David Brown
Quoted 3 lines · On Wednesday 14 July 2010 11:05:58 Kulikov Vasiliy wrote:

Use %p instead of %08x in printk().

yeah, it looks fine to me too.

Daniel

Signature · 2 lines
Sent by an consultant of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.