summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2016-12-24 18:46:24 +0200
committerRichard Lowe <richlowe@richlowe.net>2016-12-27 12:02:14 -0500
commit80132868e0b0c060e1ecc891843722fe33088e39 (patch)
treeacaf9b19758c93f7823b88c443954bf79a12d8ee
parent03502720e0c6f75cbaab12fa1ef2917fbc2eebd1 (diff)
downloadillumos-joyent-80132868e0b0c060e1ecc891843722fe33088e39.tar.gz
7690 uts: debug_enter should print message from new line
Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/uts/i86pc/os/machdep.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/src/uts/i86pc/os/machdep.c b/usr/src/uts/i86pc/os/machdep.c
index 975cd7532e..674e6e2bbc 100644
--- a/usr/src/uts/i86pc/os/machdep.c
+++ b/usr/src/uts/i86pc/os/machdep.c
@@ -427,15 +427,19 @@ abort_sequence_enter(char *msg)
/*
* Enter debugger. Called when the user types ctrl-alt-d or whenever
* code wants to enter the debugger and possibly resume later.
+ *
+ * msg: message to print, possibly NULL.
*/
void
-debug_enter(
- char *msg) /* message to print, possibly NULL */
+debug_enter(char *msg)
{
if (dtrace_debugger_init != NULL)
(*dtrace_debugger_init)();
- if (msg)
+ if (msg != NULL || (boothowto & RB_DEBUG))
+ prom_printf("\n");
+
+ if (msg != NULL)
prom_printf("%s\n", msg);
if (boothowto & RB_DEBUG)