]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Use proper logging and tracing line terminations
authorJoe Perches <joe@perches.com>
Tue, 11 Feb 2020 22:32:47 +0000 (14:32 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 19 Feb 2020 03:17:30 +0000 (19:17 -0800)
commit6a7108ec763368c7ffdfda5fe92a3f207f3a668c
tree0f5a5b2d52d83d0ea7f9355988fac71887c96954
parentd3fa3bb7e834d2d58fb6f16e4524449b699a99d6
mlx5: Use proper logging and tracing line terminations

netdev_err should use newline termination but mlx5_health_report
is used in a trace output function devlink_health_report where
no newline should be used.

Remove the newlines from a couple formats and add a format string
of "%s\n" to the netdev_err call to not directly output the
logging string.

Also use snprintf to avoid any possible output string overrun.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/health.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c