diff options
author | Anirban Chakraborty <anirban.chakraborty@qlogic.com> | 2011-07-29 13:30:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-01 00:12:00 -0700 |
commit | 51f675fd236a41e3fdb18f6e24fbaeaac4802a9b (patch) | |
tree | cf3f709048d1ef7cd53bb4f32be4dfd331b43206 /drivers/net/qlcnic | |
parent | 6a1ccaef4ef723d18067e668d5f3eee536f247cd (diff) | |
download | linux-stable-51f675fd236a41e3fdb18f6e24fbaeaac4802a9b.tar.gz linux-stable-51f675fd236a41e3fdb18f6e24fbaeaac4802a9b.tar.bz2 linux-stable-51f675fd236a41e3fdb18f6e24fbaeaac4802a9b.zip |
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>
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 4055c218ef2a..74e9d7b94965 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) goto error; } else { fw_dump->clr = 1; - snprintf(mesg, sizeof(mesg), "FW dump for device: %d\n", - adapter->pdev->devfn); + snprintf(mesg, sizeof(mesg), "FW_DUMP=%s", + adapter->netdev->name); dev_info(&adapter->pdev->dev, "Dump data, %d bytes captured\n", fw_dump->size); /* Send a udev event to notify availability of FW dump */ |