[PATCH v2] powerpc/srio: Fix the compile errors when building with 64bit
David Laight
David.Laight at ACULAB.COM
Thu Mar 8 00:18:01 EST 2012
> diff --git a/arch/powerpc/sysdev/fsl_rmu.c
b/arch/powerpc/sysdev/fsl_rmu.c
> index 1548578..1bba6d1 100644
> --- a/arch/powerpc/sysdev/fsl_rmu.c
> +++ b/arch/powerpc/sysdev/fsl_rmu.c
> @@ -657,7 +658,8 @@ fsl_add_outb_message(struct rio_mport
> *mport, struct rio_dev *rdev, int mbox,
> int ret = 0;
>
> 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 ??
David
More information about the Linuxppc-dev
mailing list