Skip to content

Commit

Permalink
net/mlx5: Prefix temperature event bitmap with '0x' for clarity
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shahar Shitrit authored and Jakub Kicinski committed Feb 18, 2025
1 parent 9dd3d5d commit b9b72ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b9b72ce

Please sign in to comment.