]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/mlx5: Prefix temperature event bitmap with '0x' for clarity
authorShahar Shitrit <shshitrit@nvidia.com>
Thu, 13 Feb 2025 09:46:39 +0000 (11:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 00:27:38 +0000 (16:27 -0800)
Prepend '0x' to the sensor bitmap in the warning message to clearly
indicate that the bitmap is in hexadecimal format.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Link: https://patch.msgid.link/20250213094641.226501-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/events.c

index e8beb6289d018b1adce61f948674ce7b1bf8ac29..a661aa522a9ad3b6564ec083d9bd8b7cffdf0816 100644 (file)
@@ -167,7 +167,7 @@ static int temp_warn(struct notifier_block *nb, unsigned long type, void *data)
 
        if (net_ratelimit())
                mlx5_core_warn(events->dev,
-                              "High temperature on sensors with bit set %llx %llx",
+                              "High temperature on sensors with bit set %#llx %#llx",
                               value_msb, value_lsb);
 
        return NOTIFY_OK;