]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/4xx/ocm: Fix fix for phys_addr_t printf warnings
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 Jan 2019 12:53:46 +0000 (23:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 Jan 2019 12:57:20 +0000 (23:57 +1100)
commit667f0eac45e698e504c2bd3c64dac7a039766af6
tree0e53c7caa8314d970d93d0236c40c38943686b74
parent7299cff511189b55ba5df23498917ff7d5668e4c
powerpc/4xx/ocm: Fix fix for phys_addr_t printf warnings

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: 610b69eee806 ("powerpc/4xx/ocm: Fix phys_addr_t printf warnings")
Reported-by: Christian Lamparter <chunkeey@gmail.com>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/4xx/ocm.c