]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/tile/kernel/hardwall.c
proc: convert /proc/$PID/hardwall to seq_file interface
[karo-tx-linux.git] / arch / tile / kernel / hardwall.c
index 531f4c365351119eeb249904cc01fd60307931b4..aca6000bca75e5b6330aeb1b8871e285a9fbe6da 100644 (file)
@@ -947,15 +947,15 @@ static void hardwall_remove_proc(struct hardwall_info *info)
        remove_proc_entry(buf, info->type->proc_dir);
 }
 
-int proc_pid_hardwall(struct task_struct *task, char *buffer)
+int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns,
+                     struct pid *pid, struct task_struct *task)
 {
        int i;
        int n = 0;
        for (i = 0; i < HARDWALL_TYPES; ++i) {
                struct hardwall_info *info = task->thread.hardwall[i].info;
                if (info)
-                       n += sprintf(&buffer[n], "%s: %d\n",
-                                    info->type->name, info->id);
+                       seq_printf(m, "%s: %d\n", info->type->name, info->id);
        }
        return n;
 }