]> 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)
commitaadc3843c7e0e6a98ef2483d662ad80e1c68e763
tree0e53c7caa8314d970d93d0236c40c38943686b74
parent05574bb3bd047a8c4c1daab4de0ccc69acbf428f
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: d6c7f28c2a4d ("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