140
140
fw_major = QLCRD32(adapter, QLCNIC_FW_VERSION_MAJOR);
141
141
fw_minor = QLCRD32(adapter, QLCNIC_FW_VERSION_MINOR);
142
142
fw_build = QLCRD32(adapter, QLCNIC_FW_VERSION_SUB);
143
sprintf(drvinfo->fw_version, "%d.%d.%d", fw_major, fw_minor, fw_build);
143
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
144
"%d.%d.%d", fw_major, fw_minor, fw_build);
145
strlcpy(drvinfo->bus_info, pci_name(adapter->pdev), 32);
146
strlcpy(drvinfo->driver, qlcnic_driver_name, 32);
147
strlcpy(drvinfo->version, QLCNIC_LINUX_VERSIONID, 32);
146
strlcpy(drvinfo->bus_info, pci_name(adapter->pdev),
147
sizeof(drvinfo->bus_info));
148
strlcpy(drvinfo->driver, qlcnic_driver_name, sizeof(drvinfo->driver));
149
strlcpy(drvinfo->version, QLCNIC_LINUX_VERSIONID,
150
sizeof(drvinfo->version));