Skip to contentSkip to conversation

schedstats: fix printk format

PATCH New Randy Dunlap 1 participant 1 message Jun 6, 2007 Proc filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 schedstats: fix printk format

From: Randy Dunlap <[email protected]>

Fix printk format warnings for schedstats:

fs/proc/base.c:309: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'long long unsigned int' fs/proc/base.c:309: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'long long unsigned int'

---
 fs/proc/base.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/proc/base.c +1 -1
@@ -303,7 +303,7 @@ static int proc_pid_wchan(struct task_st
  */
 static int proc_pid_schedstat(struct task_struct *task, char *buffer)
 {
-	return sprintf(buffer, "%lu %lu %lu\n",
+	return sprintf(buffer, "%llu %llu %lu\n",
 			task->sched_info.cpu_time,
 			task->sched_info.run_delay,
 			task->sched_info.pcnt);