aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2011-07-29 09:30:25 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-01 03:12:00 -0400
commit51f675fd236a41e3fdb18f6e24fbaeaac4802a9b (patch)
treecf3f709048d1ef7cd53bb4f32be4dfd331b43206
parent6a1ccaef4ef723d18067e668d5f3eee536f247cd (diff)
qlcnic: Fix enviroment variable for udev event generation during FW dump
Driver was not generating the environment variable for the FW dump event correctly. Fix it by formatting it properly. Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/qlcnic/qlcnic_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c
index 4055c218ef2..74e9d7b9496 100644
--- a/drivers/net/qlcnic/qlcnic_hw.c
+++ b/drivers/net/qlcnic/qlcnic_hw.c
@@ -1773,8 +1773,8 @@ int qlcnic_dump_fw(struct qlcnic_adapter *adapter)
1773 goto error; 1773 goto error;
1774 } else { 1774 } else {
1775 fw_dump->clr = 1; 1775 fw_dump->clr = 1;
1776 snprintf(mesg, sizeof(mesg), "FW dump for device: %d\n", 1776 snprintf(mesg, sizeof(mesg), "FW_DUMP=%s",
1777 adapter->pdev->devfn); 1777 adapter->netdev->name);
1778 dev_info(&adapter->pdev->dev, "Dump data, %d bytes captured\n", 1778 dev_info(&adapter->pdev->dev, "Dump data, %d bytes captured\n",
1779 fw_dump->size); 1779 fw_dump->size);
1780 /* Send a udev event to notify availability of FW dump */ 1780 /* Send a udev event to notify availability of FW dump */