]> git.baikalelectronics.ru Git - kernel.git/commit
can: dev: increase bus-off message severity
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Wed, 18 Apr 2018 14:10:03 +0000 (16:10 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 8 May 2018 08:41:38 +0000 (10:41 +0200)
commit8e9a873c858a1bd6794f56d49a8aab4adcda9857
treedfa3a1742dcbf5bbb476850ae0c5b6388267132a
parent95c62d24778862cc12e21a50d4f2064c833435da
can: dev: increase bus-off message severity

bus-off is usually caused by hardware malfunction or configuration error
(baud rate mismatch) and causes a complete loss of communication.

Increase the "bus-off" message's severity from netdev_dbg() to
netdev_info() to make it visible to the user.

A can interface going into bus-off is similar in severity to ethernet's
"Link is Down" message, which is also printed at info level.

It is debatable whether the the "restarted" message should also be
changed to netdev_info() to make the interface state changes
comprehensible from the kernel log. I have chosen to keep the
"restarted" message at dbg for now as the "bus-off" message should be
enough for the user to notice and investigate the problem.

Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
Cc: linux-can@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c