arm64: kvm: avoid %p in __kvm_hyp_panic
authorMark Rutland <mark.rutland@arm.com>
Mon, 16 Nov 2015 13:55:51 +0000 (13:55 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Tue, 24 Nov 2015 17:18:13 +0000 (18:18 +0100)
Currently __kvm_hyp_panic uses %p for values which are not pointers,
such as the ESR value. This can confusingly lead to "(null)" being
printed for the value.

Use %x instead, and only use %p for host pointers.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/kvm/hyp.S

index ff2e038f0007772831ab5f3006dfd7de3461aa2e..ce70817a9223e63d6cc29b479a7bc7b67758e1ed 100644 (file)
@@ -914,7 +914,7 @@ __kvm_hyp_panic:
 ENDPROC(__kvm_hyp_panic)
 
 __hyp_panic_str:
-       .ascii  "HYP panic:\nPS:%08x PC:%p ESR:%p\nFAR:%p HPFAR:%p PAR:%p\nVCPU:%p\n\0"
+       .ascii  "HYP panic:\nPS:%08x PC:%016x ESR:%08x\nFAR:%016x HPFAR:%016x PAR:%016x\nVCPU:%p\n\0"
 
        .align  2