From b87fa132f9a185053847b7b91ae8a6247e2d5621 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 16 Jan 2008 15:41:31 +0000 Subject: [PATCH] Use appropriate type descriptor in kprintf. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1046 38d2e660-2303-0410-9eaa-f027e97ec537 --- kern/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kern/monitor.c b/kern/monitor.c index b6afe05a..d19b4bdc 100644 --- a/kern/monitor.c +++ b/kern/monitor.c @@ -138,7 +138,7 @@ void monitor_report(void) p = MONITOR_NODE_TO_PROCESS(p->monitor.link.succ)) { size_t free = monitor_checkStack(p->monitor.stack_base, p->monitor.stack_size); - kprintf("%-24s%8p%8p%8zx%8zx\n", + kprintf("%-24s%-8p%-8p%-8u%-8u\n", p->monitor.name, p, p->monitor.stack_base, p->monitor.stack_size, free); } } @@ -157,7 +157,7 @@ static void NORETURN monitor(void) size_t free = monitor_checkStack(p->monitor.stack_base, p->monitor.stack_size); if (free < 0x20) - kprintf("MONITOR: WARNING: Free stack for process '%s' is only %x chars\n", + kprintf("MONITOR: WARNING: Free stack for process '%s' is only %u chars\n", p->monitor.name, (unsigned int)free); timer_delay(500); -- 2.34.1