proc_test: fix a format build warning.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Mar 2010 14:54:40 +0000 (14:54 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Mar 2010 14:54:40 +0000 (14:54 +0000)
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

index 5adcbc0160f25adb2cb713614ad20aa016f6fb77..dc2a075c9dd2e23a7f3df8320660658de6726cee 100644 (file)
@@ -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])