Skip to content

Commit 17c2b4e

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent 76e0a6f commit 17c2b4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/proc/task_mmu.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,10 +1418,10 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
14181418
seq_printf(m, "%08lx %s", vma->vm_start, buffer);
14191419

14201420
if (file) {
1421-
seq_printf(m, " file=");
1421+
seq_puts(m, " file=");
14221422
seq_path(m, &file->f_path, "\n\t= ");
14231423
} else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) {
1424-
seq_printf(m, " heap");
1424+
seq_puts(m, " heap");
14251425
} else {
14261426
pid_t tid = vm_is_stack(task, vma, is_pid);
14271427
if (tid != 0) {
@@ -1431,14 +1431,14 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
14311431
*/
14321432
if (!is_pid || (vma->vm_start <= mm->start_stack &&
14331433
vma->vm_end >= mm->start_stack))
1434-
seq_printf(m, " stack");
1434+
seq_puts(m, " stack");
14351435
else
14361436
seq_printf(m, " stack:%d", tid);
14371437
}
14381438
}
14391439

14401440
if (is_vm_hugetlb_page(vma))
1441-
seq_printf(m, " huge");
1441+
seq_puts(m, " huge");
14421442

14431443
walk_page_range(vma->vm_start, vma->vm_end, &walk);
14441444

0 commit comments

Comments
 (0)