]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
qlcnic: Fix enviroment variable for udev event generation during FW dump
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>
Fri, 29 Jul 2011 13:30:25 +0000 (13:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2011 07:12:00 +0000 (00:12 -0700)
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>
drivers/net/qlcnic/qlcnic_hw.c

index 4055c218ef2adba4ae03f29b5e4a18ffd3f77709..74e9d7b94965bafb8ac4199b77915438159c58c9 100644 (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 */