Re: [PATCH] memcg: remove extra newlines from memcg oom kill log

From: Johannes Weiner
Date: Tue Jan 13 2015 - 09:15:28 EST


On Mon, Jan 12, 2015 at 10:45:39PM -0800, Greg Thelen wrote:
> 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 <gthelen@xxxxxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/