]> git.baikalelectronics.ru Git - kernel.git/commit
atm: lanai: use %p to format kernel addresses instead of %x
authorColin Ian King <colin.king@canonical.com>
Mon, 27 Nov 2017 13:39:32 +0000 (13:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 21:02:44 +0000 (16:02 -0500)
commit2bc70c1eeb3fa53c2a21a9c96adbabc76bd05c23
tree61ab239d7c3ae7e2a63044ec02276a4a43bb83c1
parent567bec5ee2333f0e01a4b554085d7eb8e083dbfa
atm: lanai: use %p to format kernel addresses instead of %x

Don't use %x and casting to print out a kernel address, instead use %p
and remove the casting.  Cleans up smatch warnings:

drivers/atm/lanai.c:1589 service_buffer_allocate() warn: argument 2 to
%08lX specifier is cast from pointer
drivers/atm/lanai.c:2221 lanai_dev_open() warn: argument 4 to %lx
specifier is cast from pointer

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/lanai.c