lkml.org 
[lkml]   [2012]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [PATCH v2] powerpc/srio: Fix the compile errors when building with 64bit
From
Date
Hi, David,

On Wed, 2012-03-07 at 13:18 +0000, David Laight wrote:
> > pr_debug("RIO: fsl_add_outb_message(): destid %4.4x mbox %d
> buffer " \
> > - "%8.8x len %8.8x\n", rdev->destid, mbox, (int)buffer,
> len);
> > + "%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




\
 
 \ /
  Last update: 2012-03-08 07:35    [from the cache]
©2003-2011 Jasper Spaans