diff options
author | Toomas Soome <tsoome@me.com> | 2018-11-29 22:53:07 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-03-07 07:31:20 +0200 |
commit | 96cf04672307d7aacdfa73ae214d34affe5a218b (patch) | |
tree | fda18f2c4d7f28f4f3de75acda72bccea393125b /usr/src/boot/lib/libstand/assert.c | |
parent | 3c30f56df862431210f98c7c8f13cf1362b9c574 (diff) | |
download | illumos-joyent-96cf04672307d7aacdfa73ae214d34affe5a218b.tar.gz |
10454 loader: panic does add newline for us
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/boot/lib/libstand/assert.c')
-rw-r--r-- | usr/src/boot/lib/libstand/assert.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); } |