fs/proc/task_mmu.c: replace seq_printf by seq_puts

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Fabian Frederick 2014-06-06 14:37:03 -07:00 committed by Linus Torvalds
parent 76e0a6f40b
commit 17c2b4ee40

View File

@ -1418,10 +1418,10 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
seq_printf(m, "%08lx %s", vma->vm_start, buffer); seq_printf(m, "%08lx %s", vma->vm_start, buffer);
if (file) { if (file) {
seq_printf(m, " file="); seq_puts(m, " file=");
seq_path(m, &file->f_path, "\n\t= "); seq_path(m, &file->f_path, "\n\t= ");
} else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) { } else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) {
seq_printf(m, " heap"); seq_puts(m, " heap");
} else { } else {
pid_t tid = vm_is_stack(task, vma, is_pid); pid_t tid = vm_is_stack(task, vma, is_pid);
if (tid != 0) { if (tid != 0) {
@ -1431,14 +1431,14 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
*/ */
if (!is_pid || (vma->vm_start <= mm->start_stack && if (!is_pid || (vma->vm_start <= mm->start_stack &&
vma->vm_end >= mm->start_stack)) vma->vm_end >= mm->start_stack))
seq_printf(m, " stack"); seq_puts(m, " stack");
else else
seq_printf(m, " stack:%d", tid); seq_printf(m, " stack:%d", tid);
} }
} }
if (is_vm_hugetlb_page(vma)) if (is_vm_hugetlb_page(vma))
seq_printf(m, " huge"); seq_puts(m, " huge");
walk_page_range(vma->vm_start, vma->vm_end, &walk); walk_page_range(vma->vm_start, vma->vm_end, &walk);