]> Gentwo Git Trees - linux/.git/commit
can: dev: print bitrate error with two decimal digits
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 26 Nov 2025 10:16:18 +0000 (11:16 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 26 Nov 2025 10:20:44 +0000 (11:20 +0100)
commitb360a13d44db148f6d72fe4f73356726c0663f6a
tree1bf086c4347695402ee68d068e12efb12b05d844
parent1a620a723853a0f49703c317d52dc6b9602cbaa8
can: dev: print bitrate error with two decimal digits

Increase the resolution when printing the bitrate error and round-up the
value to 0.01% in the case the resolution would still provide values
which would lead to 0.00%.

Suggested-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://patch.msgid.link/20251126-canxl-v8-17-e7e3eb74f889@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/calc_bittiming.c