Skip to content

Commit d0072ca

Browse files
minwooimakpm00
authored andcommitted
mm: mmap: remove newline at the end of the trace
We already have newline in TP_printk so remove the redundant newline character at the end of the mmap trace. <...>-345 [006] ..... 95.589290: exit_mmap: mt_mod ... <...>-345 [006] ..... 95.589413: vm_unmapped_area: addr=... <...>-345 [006] ..... 95.589571: vm_unmapped_area: addr=... <...>-345 [006] ..... 95.589606: vm_unmapped_area: addr=... to <...>-336 [006] ..... 44.762506: exit_mmap: mt_mod ... <...>-336 [006] ..... 44.762654: vm_unmapped_area: addr=... <...>-336 [006] ..... 44.762794: vm_unmapped_area: addr=... <...>-336 [006] ..... 44.762835: vm_unmapped_area: addr=... Link: https://lkml.kernel.org/r/ZAu6qDsNPmk82UjV@minwoo-desktop FIxes: df529ca ("mm: mmap: add trace point of vm_unmapped_area") Signed-off-by: Minwoo Im <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 5aa3609 commit d0072ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/trace/events/mmap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ TRACE_EVENT(vm_unmapped_area,
3535
__entry->align_offset = info->align_offset;
3636
),
3737

38-
TP_printk("addr=0x%lx err=%ld total_vm=0x%lx flags=0x%lx len=0x%lx lo=0x%lx hi=0x%lx mask=0x%lx ofs=0x%lx\n",
38+
TP_printk("addr=0x%lx err=%ld total_vm=0x%lx flags=0x%lx len=0x%lx lo=0x%lx hi=0x%lx mask=0x%lx ofs=0x%lx",
3939
IS_ERR_VALUE(__entry->addr) ? 0 : __entry->addr,
4040
IS_ERR_VALUE(__entry->addr) ? __entry->addr : 0,
4141
__entry->total_vm, __entry->flags, __entry->length,
@@ -110,7 +110,7 @@ TRACE_EVENT(exit_mmap,
110110
__entry->mt = &mm->mm_mt;
111111
),
112112

113-
TP_printk("mt_mod %p, DESTROY\n",
113+
TP_printk("mt_mod %p, DESTROY",
114114
__entry->mt
115115
)
116116
);

0 commit comments

Comments
 (0)