powerpc/4xx/ocm: Fix fix for phys_addr_t printf warnings

Michael Ellerman patch-notifications at ellerman.id.au
Thu Jan 17 11:27:28 AEDT 2019


On Mon, 2019-01-14 at 00:32:55 UTC, Michael Ellerman wrote:
> My recent commit to fix the printf warnings in ocm.c got the format
> specifier wrong, because I copied it from the documentation without
> realising the square brackets are not meant as literals.
> 
> This results in the address being suffixed with a literal "[p]".
> 
> Actually tested this time:
> 
>   # cat info /sys/kernel/debug/ppc4xx_ocm
>   PhysAddr     : 0x0000000400040000
>   ...
>   NC.PhysAddr  : 0x0000000400040000
>   ...
>   C.PhysAddr   : 0x0000000000000000
> 
> Fixes: 52b88fa1e8c7 ("powerpc/4xx/ocm: Fix phys_addr_t printf warnings")
> Reported-by: Christian Lamparter <chunkeey at gmail.com>
> Tested-by: Christian Lamparter <chunkeey at gmail.com>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

Applied to powerpc fixes.

https://git.kernel.org/powerpc/c/fcf5036f09694d09d946c0455f329894

cheers


More information about the Linuxppc-dev mailing list