arcmsr: Use device_set_descf()

No functional change intended.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-06-05 10:13:26 -04:00
parent 5515e8874a
commit 4f0ff49fee
1 changed files with 2 additions and 4 deletions

View File

@ -5238,7 +5238,6 @@ static int arcmsr_probe(device_t dev)
{
u_int32_t id;
u_int16_t sub_device_id;
static char buf[256];
char x_type[]={"unknown"};
char *type;
int raid6 = 1;
@ -5313,9 +5312,8 @@ static int arcmsr_probe(device_t dev)
}
if(type == x_type)
return(ENXIO);
sprintf(buf, "Areca %s Host Adapter RAID Controller %s\n%s\n",
type, raid6 ? "(RAID6 capable)" : "", ARCMSR_DRIVER_VERSION);
device_set_desc_copy(dev, buf);
device_set_descf(dev, "Areca %s Host Adapter RAID Controller %s\n%s\n",
type, raid6 ? "(RAID6 capable)" : "", ARCMSR_DRIVER_VERSION);
return (BUS_PROBE_DEFAULT);
}
/*