|
@@ -96,14 +96,11 @@ s32 ixgbe_write_analog_reg8_generic(struct ixgbe_hw *hw, u32 reg, u8 val);
|
|
|
#define IXGBE_WRITE_FLUSH(a) IXGBE_READ_REG(a, IXGBE_STATUS)
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
+extern char *ixgbe_get_hw_dev_name(struct ixgbe_hw *hw);
|
|
|
#define hw_dbg(hw, format, arg...) \
|
|
|
-printk(KERN_DEBUG, "%s: " format, ixgbe_get_hw_dev_name(hw), ##arg);
|
|
|
+ printk(KERN_DEBUG "%s: " format, ixgbe_get_hw_dev_name(hw), ##arg)
|
|
|
#else
|
|
|
-static inline int __attribute__ ((format (printf, 2, 3)))
|
|
|
-hw_dbg(struct ixgbe_hw *hw, const char *format, ...)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
+#define hw_dbg(hw, format, arg...) do {} while (0)
|
|
|
#endif
|
|
|
|
|
|
#endif /* IXGBE_COMMON */
|