git: 266585108679 - main - Remove the newline from arm64 trap panics

Andrew Turner andrew at FreeBSD.org
Thu Jul 15 09:37:38 UTC 2021


The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=2665851086795c61e799fbe57bfb37cabab3cf8c

commit 2665851086795c61e799fbe57bfb37cabab3cf8c
Author:     Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2021-07-14 19:49:58 +0000
Commit:     Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2021-07-14 19:49:58 +0000

    Remove the newline from arm64 trap panics
    
    The panic function will already print a newline so there is no need to
    add it here.
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/arm64/arm64/trap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
index 744b646b31c8..e876fa5011c3 100644
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -425,7 +425,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
 #ifdef KDB
 		kdb_trap(exception, 0, frame);
 #else
-		panic("No debugger in kernel.\n");
+		panic("No debugger in kernel.");
 #endif
 		break;
 	case EXCP_WATCHPT_EL1:
@@ -433,7 +433,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
 #ifdef KDB
 		kdb_trap(exception, 0, frame);
 #else
-		panic("No debugger in kernel.\n");
+		panic("No debugger in kernel.");
 #endif
 		break;
 	case EXCP_UNKNOWN:
@@ -443,7 +443,7 @@ do_el1h_sync(struct thread *td, struct trapframe *frame)
 	default:
 		print_registers(frame);
 		printf(" far: %16lx\n", READ_SPECIALREG(far_el1));
-		panic("Unknown kernel exception %x esr_el1 %lx\n", exception,
+		panic("Unknown kernel exception %x esr_el1 %lx", exception,
 		    esr);
 	}
 }


More information about the dev-commits-src-all mailing list