oce: Use device_set_descf()

No functional change intended.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-06-05 15:28:13 -04:00
parent 2ef1f61df2
commit c704b87ba6

View File

@ -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: