]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: Remove unneeded registration message
authorFabio Estevam <festevam@gmail.com>
Tue, 4 Jun 2019 18:49:42 +0000 (15:49 -0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 Jun 2019 21:03:54 +0000 (23:03 +0200)
commit3889be338b9b2680ba26fa59e973fca5521c1fa3
tree68b9d31246cfac089fb8e19e6544743e90b2783a
parent882ff8201957f369b033988467b2fb2dd4b1d1ed
can: flexcan: Remove unneeded registration message

Currently the following message is observed when the flexcan
driver is probed:

flexcan 2090000.flexcan: device registered (reg_base=(ptrval), irq=23)

The reason for printing 'ptrval' is explained at
Documentation/core-api/printk-formats.rst:

"Pointers printed without a specifier extension (i.e unadorned %p) are
hashed to prevent leaking information about the kernel memory layout. This
has the added benefit of providing a unique identifier. On 64-bit machines
the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it
gathers enough entropy."

Instead of passing %pK, which can print the correct address, simply
remove the entire message as it is not really that useful.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c