提交 831c326f 编写于 作者: L Leo Yan 提交者: Greg Kroah-Hartman

coresight: Use %px to print pcsr instead of %p

Commit ad67b74d ("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: NLeo Yan <leo.yan@linaro.org>
Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fecae16e
...@@ -315,7 +315,7 @@ static void debug_dump_regs(struct debug_drvdata *drvdata) ...@@ -315,7 +315,7 @@ static void debug_dump_regs(struct debug_drvdata *drvdata)
} }
pc = debug_adjust_pc(drvdata); pc = debug_adjust_pc(drvdata);
dev_emerg(dev, " EDPCSR: [<%p>] %pS\n", (void *)pc, (void *)pc); dev_emerg(dev, " EDPCSR: [<%px>] %pS\n", (void *)pc, (void *)pc);
if (drvdata->edcidsr_present) if (drvdata->edcidsr_present)
dev_emerg(dev, " EDCIDSR: %08x\n", drvdata->edcidsr); dev_emerg(dev, " EDCIDSR: %08x\n", drvdata->edcidsr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册