diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-03-31 17:32:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-02 04:02:27 -0400 |
commit | b453368dfd74ba5a49bfaa853251212fa306e70d (patch) | |
tree | ff8a998ce0c3706c1452138833280f879d5da4a5 /drivers/net/ixgbe/ixgbe_main.c | |
parent | 3fe7c4c9dca4fbbff92eb61a660690dad7029ec3 (diff) |
ixgbe: fix build when DEBUG is defined
The ixgbe driver had issues when DEBUG was defined because the hw_dbg macro
was incomplete. This patch completes the code based off of the code that
already existed in the igb module.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 79aa811c403c..fd27513a92f6 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -4987,8 +4987,20 @@ static int ixgbe_notify_dca(struct notifier_block *nb, unsigned long event, | |||
4987 | 4987 | ||
4988 | return ret_val ? NOTIFY_BAD : NOTIFY_DONE; | 4988 | return ret_val ? NOTIFY_BAD : NOTIFY_DONE; |
4989 | } | 4989 | } |
4990 | |||
4990 | #endif /* CONFIG_IXGBE_DCA */ | 4991 | #endif /* CONFIG_IXGBE_DCA */ |
4992 | #ifdef DEBUG | ||
4993 | /** | ||
4994 | * ixgbe_get_hw_dev_name - return device name string | ||
4995 | * used by hardware layer to print debugging information | ||
4996 | **/ | ||
4997 | char *ixgbe_get_hw_dev_name(struct ixgbe_hw *hw) | ||
4998 | { | ||
4999 | struct ixgbe_adapter *adapter = hw->back; | ||
5000 | return adapter->netdev->name; | ||
5001 | } | ||
4991 | 5002 | ||
5003 | #endif | ||
4992 | module_exit(ixgbe_exit_module); | 5004 | module_exit(ixgbe_exit_module); |
4993 | 5005 | ||
4994 | /* ixgbe_main.c */ | 5006 | /* ixgbe_main.c */ |