monitor: use %zu to print size_t arguments to pacify gcc
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 10 Aug 2008 13:35:21 +0000 (13:35 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 10 Aug 2008 13:35:21 +0000 (13:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1597 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/monitor.c

index d46c750a0ed14540bf9aa4cf2f3fa4af75d02a80..f9eaf3b8de5a9b2b3d7f4e6abd366282e14e246c 100644 (file)
@@ -126,7 +126,7 @@ void monitor_report(void)
        {
                Process *p = containerof(node, Process, monitor.link);
                size_t free = monitor_checkStack(p->stack_base, p->stack_size);
-               kprintf("%-8p%-8p%-8lu%-8lu %s\n",
+               kprintf("%-8p%-8p%-8zu%-8zu %s\n",
                        p, p->stack_base, p->stack_size, free, p->monitor.name);
        }
        proc_permit();