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>
This commit is contained in:
Anirban Chakraborty 2011-07-29 13:30:25 +00:00 committed by David S. Miller
parent 6a1ccaef4e
commit 51f675fd23
1 changed files with 2 additions and 2 deletions

View File

@ -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 */