git: 59833b089e78 - main - arm64: improve KTR_TRAP trace entries

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 05:23:35 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=59833b089e78463a561706fc03777249766aea01

commit 59833b089e78463a561706fc03777249766aea01
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2023-06-24 05:23:14 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2023-06-24 05:23:14 +0000

    arm64: improve KTR_TRAP trace entries
    
    Follow-up of 7756232199ad ("riscv: improve KTR_TRAP trace entries").
    
    Reviewed by:    markj
    Approved by:    markj (mentor)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D40696
---
 sys/arm64/arm64/trap.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
index 7b5c7bc61fd3..8d51c73a15c9 100644
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -484,9 +484,8 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
 		return;
 #endif
 
-	CTR4(KTR_TRAP,
-	    "do_el1_sync: curthread: %p, esr 0x%lx, elr: 0x%lx, frame: %p",
-	    td, esr, frame->tf_elr, frame);
+	CTR4(KTR_TRAP, "%s: exception=%lu, elr=0x%lx, esr=0x%lx",
+	    __func__, exception, frame->tf_elr, esr);
 
 	/*
 	 * Enable debug exceptions if we aren't already handling one. They will
@@ -598,9 +597,8 @@ do_el0_sync(struct thread *td, struct trapframe *frame)
 	}
 	intr_enable();
 
-	CTR4(KTR_TRAP,
-	    "do_el0_sync: curthread: %p, esr 0x%lx, elr: 0x%lx, frame: %p",
-	    td, esr, frame->tf_elr, frame);
+	CTR4(KTR_TRAP, "%s: exception=%lu, elr=0x%lx, esr=0x%lx",
+	    __func__, exception, frame->tf_elr, esr);
 
 	switch (exception) {
 	case EXCP_FP_SIMD: