Re: [PATCH] slub: Trace free objects at KERN_INFO
From: David Rientjes
Date: Tue Jan 17 2017 - 20:49:49 EST
On Fri, 13 Jan 2017, Daniel Thompson wrote:
> Currently when trace is enabled (e.g. slub_debug=T,kmalloc-128 ) the
> trace messages are mostly output at KERN_INFO. However the trace code
> also calls print_section() to hexdump the head of a free object. This
> is hard coded to use KERN_ERR, meaning the console is deluged with
> trace messages even if we've asked for quiet.
>
> Fix this the obvious way but adding a level parameter to
> print_section(), allowing calls from the trace code to use the same
> trace level as other trace messages.
>
> Signed-off-by: Daniel Thompson <daniel.thompson@xxxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>