From 171251d9de4ef383f9f0feb622da3863076b1fc6 Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 18 Mar 2010 14:54:40 +0000 Subject: [PATCH] proc_test: fix a format build warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixed the following build warning: bertos/kern/proc_test.c:220: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’ git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3239 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/proc_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/kern/proc_test.c b/bertos/kern/proc_test.c index 5adcbc01..dc2a075c 100644 --- a/bertos/kern/proc_test.c +++ b/bertos/kern/proc_test.c @@ -217,7 +217,7 @@ static void preempt_worker(void) if (UNLIKELY(*my_count == (unsigned int)~0)) *my_count = 1; } - PROC_ATOMIC(kprintf("> %s[%zd] completed: (counter = %d)\n", + PROC_ATOMIC(kprintf("> %s[%zd] completed: (counter = %lu)\n", __func__, pid, *my_count)); for (i = 0; i < TASKS; i++) if (!preempt_counter[i]) -- 2.25.1