Skip to content
Commit fcf5036f authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: 52b88fa1

 ("powerpc/4xx/ocm: Fix phys_addr_t printf warnings")
Reported-by: default avatarChristian Lamparter <chunkeey@gmail.com>
Tested-by: default avatarChristian Lamparter <chunkeey@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6bca5159
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment