From 96cf04672307d7aacdfa73ae214d34affe5a218b Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Thu, 29 Nov 2018 22:53:07 +0200 Subject: 10454 loader: panic does add newline for us Reviewed by: John Levon Reviewed by: Andy Stormont Reviewed by: Gergő Mihály Doma Reviewed by: Andy Fiddaman Approved by: Richard Lowe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/boot/lib/libstand/assert.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/src/boot/lib/libstand/assert.c') diff --git a/usr/src/boot/lib/libstand/assert.c b/usr/src/boot/lib/libstand/assert.c index bfc1933dea..7ed70d70ee 100644 --- a/usr/src/boot/lib/libstand/assert.c +++ b/usr/src/boot/lib/libstand/assert.c @@ -34,10 +34,9 @@ void __assert(const char *func, const char *file, int line, const char *expression) { if (func == NULL) - panic("Assertion failed: (%s), file %s, line %d.\n", + panic("Assertion failed: (%s), file %s, line %d.", expression, file, line); else - panic( - "Assertion failed: (%s), function %s, file %s, line %d.\n", + panic("Assertion failed: (%s), function %s, file %s, line %d.", expression, func, file, line); } -- cgit v1.2.3