Re: [PATCH] mm/slab: Do not hash pointers when debugging slab

From: Christopher Lameter
Date: Thu Dec 07 2017 - 06:14:02 EST


On Thu, 7 Dec 2017, Geert Uytterhoeven wrote:

> If CONFIG_DEBUG_SLAB/CONFIG_DEBUG_SLAB_LEAK are enabled, the slab code
> prints extra debug information when e.g. corruption is detected.
> This includes pointers, which are not very useful when hashed.
>
> Fix this by using %px to print unhashed pointers instead.

Acked-by: Christoph Lameter <cl@xxxxxxxxx>

These SLAB config options are only used for testing so this is ok.