From ac42c452766345ee799db6a2f2cd1c810330b39b Mon Sep 17 00:00:00 2001 From: bernie Date: Sun, 10 Aug 2008 13:35:21 +0000 Subject: [PATCH] monitor: use %zu to print size_t arguments to pacify gcc git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1597 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/kern/monitor.c b/bertos/kern/monitor.c index d46c750a..f9eaf3b8 100644 --- a/bertos/kern/monitor.c +++ b/bertos/kern/monitor.c @@ -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(); -- 2.25.1