Use kputs()/kputchar() when possible.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Aug 2004 16:07:01 +0000 (16:07 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Aug 2004 16:07:01 +0000 (16:07 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@156 38d2e660-2303-0410-9eaa-f027e97ec537

kern/proc.c

index 74ba6151f167b45632757db513b4ec21f22c7ae1..7299518253c849ef8cb55a6f2e60f0143bdd8383 100755 (executable)
@@ -17,6 +17,9 @@
 
 /*
  * $Log$
+ * Revision 1.10  2004/08/24 16:07:01  bernie
+ * Use kputs()/kputchar() when possible.
+ *
  * Revision 1.9  2004/08/24 14:26:57  bernie
  * monitor_debug_stacks(): Conditionally compile on CONFIG_KERN_MONITOR.
  *
@@ -158,14 +161,14 @@ void monitor_debug_stacks(void)
 
        if (ISLISTEMPTY(&MonitorProcs))
        {
-               kprintf("No stacks registered in the monitor\n");
+               kputs("No stacks registered in the monitor\n");
                return;
        }
 
        kprintf("%-24s    %-6s%-8s%-8s%-8s\n", "Process name", "TCB", "SPbase", "SPsize", "SPfree");
        for (i=0;i<56;i++)
-               kprintf("-");
-       kprintf("\n");
+               kputchar('-');
+       kputchar('\n');
 
        for (p = MONITOR_NODE_TO_PROCESS(MonitorProcs.head);
                 p->monitor.link.succ;