Index: kernel/generic/src/lib/func.c
===================================================================
--- kernel/generic/src/lib/func.c	(revision ac8e7a918059120c8c14bb11fef3e0c2ebba857a)
+++ kernel/generic/src/lib/func.c	(revision 67a88c34de6b29d84b4ea8c0f06dfa98cbcf09bd)
@@ -48,5 +48,5 @@
 /** Halt wrapper
  *
- * Set halt flag and halt the cpu.
+ * Set halt flag and halt the CPU.
  *
  */
@@ -55,5 +55,5 @@
 #ifdef CONFIG_DEBUG
 	bool rundebugger = false;
-
+	
 	if (!atomic_get(&haltstate)) {
 		atomic_set(&haltstate, 1);
@@ -63,10 +63,10 @@
 	atomic_set(&haltstate, 1);
 #endif
-
+	
 	interrupts_disable();
 	
 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE))
-	if (rundebugger)
-		kconsole("panic", "\nLast resort kernel console ready\n", false);
+	if ((rundebugger) && (kconsole_check_poll()))
+		kconsole("panic", "\nLast resort kernel console ready.\n", false);
 #endif
 	
@@ -75,4 +75,5 @@
 	else
 		printf("cpu: halted\n");
+	
 	cpu_halt();
 }
