]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: Use %px to print pcsr instead of %p
authorLeo Yan <leo.yan@linaro.org>
Tue, 13 Mar 2018 17:24:30 +0000 (11:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2018 17:05:34 +0000 (18:05 +0100)
commiteeeb8782710a14f971b7c251b271a4762be7608b
tree8e14630916bcc477a420d343538571a444abd66d
parent032e821fe581bb97cb028fa305d964426678cd26
coresight: Use %px to print pcsr instead of %p

Commit 7f32ed5e940b ("printk: hash addresses printed with %p") lets
printk specifier %p to hash all addresses before printing, this was
resulting in the high 32 bits of pcsr can only output zeros.  So
module cannot completely print pc value and it's pointless for debugging
purpose.

This patch fixes this by using %px to print pcsr instead.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-cpu-debug.c