nvmf: Use device_set_descf()

No functional change intended.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-06-05 10:17:50 -04:00
parent 44d36c9731
commit b67f248523
1 changed files with 1 additions and 3 deletions

View File

@ -251,13 +251,11 @@ static int
nvmf_probe(device_t dev)
{
struct nvmf_ivars *ivars = device_get_ivars(dev);
char desc[260];
if (ivars == NULL)
return (ENXIO);
snprintf(desc, sizeof(desc), "Fabrics: %.256s", ivars->cdata->subnqn);
device_set_desc_copy(dev, desc);
device_set_descf(dev, "Fabrics: %.256s", ivars->cdata->subnqn);
return (BUS_PROBE_DEFAULT);
}