Index: stand/libsa/dev.c =================================================================== --- stand/libsa/dev.c +++ stand/libsa/dev.c @@ -56,3 +56,14 @@ { return (EINVAL); } + +char * +devformat(struct devdesc *d) +{ + static char name[DEV_DEVLEN]; + + if (d->d_dev->dv_fmtdev != NULL) + return (d->d_dev->dv_fmtdev(d)); + snprintf(name, sizeof(name), "%s%d:", d->d_dev->dv_name, d->d_unit); + return (name); +}