Reduce memory usage.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Mar 2006 09:49:22 +0000 (09:49 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Mar 2006 09:49:22 +0000 (09:49 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@580 38d2e660-2303-0410-9eaa-f027e97ec537

kern/monitor.c

index 1749e3ec99872a20d9ce2f3d8a01f75b51edc4e5..d7512151efabc9cfdb7078b7292eabedcc178999 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.8  2006/03/22 09:49:22  bernie
+ *#* Reduce memory usage.
+ *#*
  *#* Revision 1.7  2006/03/13 02:07:14  bernie
  *#* Add TODO item.
  *#*
@@ -151,7 +154,7 @@ void monitor_report(void)
 
 static void NORETURN monitor(void)
 {
-       struct Processp;
+       struct Process *p;
 
        while (1)
        {
@@ -162,11 +165,8 @@ static void NORETURN monitor(void)
                        size_t free = monitor_checkStack(p->monitor.stack_base, p->monitor.stack_size);
 
                        if (free < 0x20)
-                       {
-                               kprintf("MONITOR: ***************************************\n");
-                               kprintf("MONITOR: WARNING: Free stack for process '%s' is only %04x chars\n", p->monitor.name, free);
-                               kprintf("MONITOR: ***************************************\n\n");
-                       }
+                               kprintf("MONITOR: WARNING: Free stack for process '%s' is only %x chars\n",
+                                               p->monitor.name, free);
 
                        timer_delay(500);
                }