mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 17:44:17 +01:00
oce: Use device_set_descf()
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
2ef1f61df2
commit
c704b87ba6
@ -252,7 +252,6 @@ oce_probe(device_t dev)
|
||||
uint16_t vendor = 0;
|
||||
uint16_t device = 0;
|
||||
int i = 0;
|
||||
char str[256] = {0};
|
||||
POCE_SOFTC sc;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
@ -265,9 +264,9 @@ oce_probe(device_t dev)
|
||||
for (i = 0; i < (sizeof(supportedDevices) / sizeof(uint32_t)); i++) {
|
||||
if (vendor == ((supportedDevices[i] >> 16) & 0xffff)) {
|
||||
if (device == (supportedDevices[i] & 0xffff)) {
|
||||
sprintf(str, "%s:%s", "Emulex CNA NIC function",
|
||||
component_revision);
|
||||
device_set_desc_copy(dev, str);
|
||||
device_set_descf(dev,
|
||||
"%s:%s", "Emulex CNA NIC function",
|
||||
component_revision);
|
||||
|
||||
switch (device) {
|
||||
case PCI_PRODUCT_BE2:
|
||||
|
Loading…
Reference in New Issue
Block a user