Skip to content

Commit 1d7a4e3

Browse files
mrutland-armchazy
authored andcommitted
arm64: kvm: avoid %p in __kvm_hyp_panic
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>
1 parent 9f958c1 commit 1d7a4e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm64/kvm/hyp.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ __kvm_hyp_panic:
914914
ENDPROC(__kvm_hyp_panic)
915915

916916
__hyp_panic_str:
917-
.ascii "HYP panic:\nPS:%08x PC:%p ESR:%p\nFAR:%p HPFAR:%p PAR:%p\nVCPU:%p\n\0"
917+
.ascii "HYP panic:\nPS:%08x PC:%016x ESR:%08x\nFAR:%016x HPFAR:%016x PAR:%016x\nVCPU:%p\n\0"
918918

919919
.align 2
920920

0 commit comments

Comments
 (0)