memcg: remove extra newlines from memcg oom kill log
authorGreg Thelen <[email protected]>
Mon, 26 Jan 2015 20:58:38 +0000 (12:58 -0800)
committerLinus Torvalds <[email protected]>
Mon, 26 Jan 2015 21:37:18 +0000 (13:37 -0800)
commit0346dadbf041a2606bcb5bd27828b0d105897f4a
treea4c6eff17820d0a50ca0d40744a2fae610a4e9b0
parentd69911a68c865b152a067feaa45e98e6bb0f655b
memcg: remove extra newlines from memcg oom kill log

Commit e61734c55c24 ("cgroup: remove cgroup->name") added two extra
newlines to memcg oom kill log messages.  This makes dmesg hard to read
and parse.  The issue affects 3.15+.

Example:

  Task in /t                          <<< extra #1
   killed as a result of limit of /t
                                      <<< extra #2
  memory: usage 102400kB, limit 102400kB, failcnt 274712

Remove the extra newlines from memcg oom kill messages, so the messages
look like:

  Task in /t killed as a result of limit of /t
  memory: usage 102400kB, limit 102400kB, failcnt 240649

Fixes: e61734c55c24 ("cgroup: remove cgroup->name")
Signed-off-by: Greg Thelen <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c