Skip to content

Commit

Permalink
arm64: kvm: avoid %p in __kvm_hyp_panic
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Cc: Christoffer Dall <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
Mark Rutland authored and chazy committed Nov 24, 2015
1 parent 9f958c1 commit 1d7a4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm64/kvm/hyp.S
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1d7a4e3

Please sign in to comment.