Skip to content
Commit b21aef7e authored by Joe Perches's avatar Joe Perches Committed by Saeed Mahameed
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 0f56d3c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment