aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-11 02:45:32 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-11 18:00:14 -0500
commit7c1446ddceb89ee1ddbe5d7a90cfd4cb2bc8ad37 (patch)
tree44f4d6cc04362e04c1632baa7f42323848d9a7ba /litmus
parent98ac0cd2bbe476d79ebf44139a6259cb8d0dc6be (diff)
Avoid warning on 64bit builds
The specifier %u doesn't match sizeof() if sizeof() returns a 64bit quantity on x86_64. Always cast it to int to avoid the warning.
Diffstat (limited to 'litmus')
-rw-r--r--litmus/sched_task_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index 5fcabb55eb8f..e5098ddb1ec9 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -42,8 +42,8 @@ static int __init init_sched_task_trace(void)
42 struct local_buffer* buf; 42 struct local_buffer* buf;
43 int i, ok = 0; 43 int i, ok = 0;
44 printk("Allocated %u sched_trace_xxx() events per CPU " 44 printk("Allocated %u sched_trace_xxx() events per CPU "
45 "(buffer size: %u bytes)\n", 45 "(buffer size: %d bytes)\n",
46 NO_EVENTS, sizeof(struct local_buffer)); 46 NO_EVENTS, (int) sizeof(struct local_buffer));
47 ftdev_init(&st_dev, THIS_MODULE); 47 ftdev_init(&st_dev, THIS_MODULE);
48 for (i = 0; i < NR_CPUS; i++) { 48 for (i = 0; i < NR_CPUS; i++) {
49 buf = &per_cpu(st_event_buffer, i); 49 buf = &per_cpu(st_event_buffer, i);