Re: [PATCH net-next 10/10] mlxsw: core_thermal: Fix -Wformat-truncation warning
From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-08-01 01:40:13
From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-08-01 01:40:13
On Tue, 30 Jul 2024 15:58:21 +0200 Petr Machata wrote:
From: Ido Schimmel <idosch@nvidia.com>
The name of a thermal zone device cannot be longer than 19 characters
('THERMAL_NAME_LENGTH - 1'). The format string 'mlxsw-lc%d-module%d' can
exceed this limitation if the maximum number of line cards cannot be
represented using a single digit and the maximum number of transceiver
modules cannot be represented using two digits.The ordering could have been better since this comes from patch 6 in the same series :(