Commit 5edc4465 authored by Joe Perches's avatar Joe Perches Committed by Jeff Kirsher

ixgb: Remove unnecessary defines, use pr_debug

Use the current logging styles.

Remove unnecessary _DEBUG_DRIVER_ and PFX, use pr_debug.
Coalesce format.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Tested-by: default avatarJeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 3832b26e
...@@ -75,18 +75,6 @@ struct ixgb_adapter; ...@@ -75,18 +75,6 @@ struct ixgb_adapter;
#include "ixgb_ee.h" #include "ixgb_ee.h"
#include "ixgb_ids.h" #include "ixgb_ids.h"
#define PFX "ixgb: "
#ifdef _DEBUG_DRIVER_
#define IXGB_DBG(fmt, args...) printk(KERN_DEBUG PFX fmt, ##args)
#else
#define IXGB_DBG(fmt, args...) \
do { \
if (0) \
printk(KERN_DEBUG PFX fmt, ##args); \
} while (0)
#endif
/* TX/RX descriptor defines */ /* TX/RX descriptor defines */
#define DEFAULT_TXD 256 #define DEFAULT_TXD 256
#define MAX_TXD 4096 #define MAX_TXD 4096
......
...@@ -2068,8 +2068,8 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter, int *work_done, int work_to_do) ...@@ -2068,8 +2068,8 @@ ixgb_clean_rx_irq(struct ixgb_adapter *adapter, int *work_done, int work_to_do)
/* All receives must fit into a single buffer */ /* All receives must fit into a single buffer */
IXGB_DBG("Receive packet consumed multiple buffers " pr_debug("Receive packet consumed multiple buffers length<%x>\n",
"length<%x>\n", length); length);
dev_kfree_skb_irq(skb); dev_kfree_skb_irq(skb);
goto rxdesc_done; goto rxdesc_done;
......
Markdown is supported
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