Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2021 09:37:38 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 266585108679 - main - Remove the newline from arm64 trap panics
Message-ID:  <202107150937.16F9bcHT099840@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

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

commit 2665851086795c61e799fbe57bfb37cabab3cf8c
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2021-07-14 19:49:58 +0000
Commit:     Andrew Turner <andrew@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);
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107150937.16F9bcHT099840>