net/mlx5: Remove duplicate pci dev name print
authorKamal Heib <kamalh@mellanox.com>
Tue, 6 Dec 2016 15:32:44 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:44:43 +0000 (11:44 -0500)
Remove duplicate pci dev name printing from mlx5_core_warn/dbg.

Fixes: 5a7883989b1c ('net/mlx5_core: Improve mlx5 messages')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h

index 20d16b137e03995007a6a29b6897be0d2516be40..2ce03464e62281fdb4624134adc967a45006531f 100644 (file)
@@ -47,8 +47,8 @@
 extern uint mlx5_core_debug_mask;
 
 #define mlx5_core_dbg(__dev, format, ...)                              \
-       dev_dbg(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format,      \
-                (__dev)->priv.name, __func__, __LINE__, current->pid,  \
+       dev_dbg(&(__dev)->pdev->dev, "%s:%d:(pid %d): " format,         \
+                __func__, __LINE__, current->pid,                      \
                 ##__VA_ARGS__)
 
 #define mlx5_core_dbg_mask(__dev, mask, format, ...)                   \
@@ -63,8 +63,8 @@ do {                                                                  \
               ##__VA_ARGS__)
 
 #define mlx5_core_warn(__dev, format, ...)                             \
-       dev_warn(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format,     \
-               (__dev)->priv.name, __func__, __LINE__, current->pid,   \
+       dev_warn(&(__dev)->pdev->dev, "%s:%d:(pid %d): " format,        \
+                __func__, __LINE__, current->pid,                      \
                ##__VA_ARGS__)
 
 #define mlx5_core_info(__dev, format, ...)                             \