From: arighi Date: Thu, 18 Mar 2010 14:54:40 +0000 (+0000) Subject: proc_test: fix a format build warning. X-Git-Tag: 2.4.0~25 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=171251d9de4ef383f9f0feb622da3863076b1fc6;p=bertos.git proc_test: fix a format build warning. 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 --- 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])