diff options
author | Alexander Duyck | 2009-03-31 23:32:42 +0200 |
---|---|---|
committer | David S. Miller | 2009-04-02 10:02:27 +0200 |
commit | b453368dfd74ba5a49bfaa853251212fa306e70d (patch) | |
tree | ff8a998ce0c3706c1452138833280f879d5da4a5 /drivers/net/ixgbe/ixgbe_main.c | |
parent | net/igb: Fix kexec with igb (rev. 3) (diff) | |
download | kernel-qcow2-linux-b453368dfd74ba5a49bfaa853251212fa306e70d.tar.gz kernel-qcow2-linux-b453368dfd74ba5a49bfaa853251212fa306e70d.tar.xz kernel-qcow2-linux-b453368dfd74ba5a49bfaa853251212fa306e70d.zip |
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, return ret_val ? NOTIFY_BAD : NOTIFY_DONE; } + #endif /* CONFIG_IXGBE_DCA */ +#ifdef DEBUG +/** + * ixgbe_get_hw_dev_name - return device name string + * used by hardware layer to print debugging information + **/ +char *ixgbe_get_hw_dev_name(struct ixgbe_hw *hw) +{ + struct ixgbe_adapter *adapter = hw->back; + return adapter->netdev->name; +} +#endif module_exit(ixgbe_exit_module); /* ixgbe_main.c */ |