Thread (3 messages) 3 messages, 2 authors, 2012-03-08

RE: [PATCH v2] powerpc/srio: Fix the compile errors when building with 64bit

flat view

From: Liu Gang <hidden>
Date: 2012-03-08 06:33:10
Also in: lkml

Hi, David,

On Wed, 2012-03-07 at 13:18 +0000, David Laight wrote:  
quoted
 	pr_debug("RIO: fsl_add_outb_message(): destid %4.4x mbox %d
buffer " \
quoted
-		 "%8.8x len %8.8x\n", rdev->destid, mbox, (int)buffer,
len);
quoted
+		 "%8.8lx len %8.8zx\n", rdev->destid, mbox,
+		(unsigned long)buffer, len);
Should 'buffer' be printed with %p ??
Yes, printing with "%p" can get rid of the cast, although they have the
same print results.

Thanks a lot.

Liu Gang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help