Use device_printf() instead of printf() when printing warnings and errors
to dmesg(8) in mlx5core. Submitted by: Matthew Finlay <matt@mellanox.com> MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
330bf9c54e
commit
b0b6754a3a
@ -49,14 +49,14 @@ do { \
|
||||
mlx5_core_dbg(dev, format, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#define mlx5_core_err(dev, format, ...) \
|
||||
printf("mlx5_core: ERR: ""%s:%s:%d:(pid %d): " format, \
|
||||
(dev)->priv.name, __func__, __LINE__, curthread->td_proc->p_pid, \
|
||||
##__VA_ARGS__)
|
||||
#define mlx5_core_err(_dev, format, ...) \
|
||||
device_printf((&(_dev)->pdev->dev)->bsddev, "ERR: ""%s:%d:(pid %d): " format, \
|
||||
__func__, __LINE__, curthread->td_proc->p_pid, \
|
||||
##__VA_ARGS__)
|
||||
|
||||
#define mlx5_core_warn(dev, format, ...) \
|
||||
printf("mlx5_core: WARN: ""%s:%s:%d:(pid %d): " format, \
|
||||
(dev)->priv.name, __func__, __LINE__, curthread->td_proc->p_pid, \
|
||||
#define mlx5_core_warn(_dev, format, ...) \
|
||||
device_printf((&(_dev)->pdev->dev)->bsddev, "WARN: ""%s:%d:(pid %d): " format, \
|
||||
__func__, __LINE__, curthread->td_proc->p_pid, \
|
||||
##__VA_ARGS__)
|
||||
|
||||
enum {
|
||||
|
Loading…
Reference in New Issue
Block a user