Changeset View
Changeset View
Standalone View
Standalone View
stand/kboot/hostdisk.c
| Show First 20 Lines • Show All 423 Lines • ▼ Show 20 Lines | |||||
| done: | done: | ||||
| return (ret); | return (ret); | ||||
| } | } | ||||
| static char * | static char * | ||||
| hostdisk_fmtdev(struct devdesc *vdev) | hostdisk_fmtdev(struct devdesc *vdev) | ||||
| { | { | ||||
| static char name[DEV_DEVLEN]; | |||||
| return ((char *)hd_name(dev2hd(vdev))); | snprintf(name, sizeof(name), "%s:", dev2hd(vdev)->hd_dev); | ||||
| return (name); | |||||
| } | } | ||||
| static bool | static bool | ||||
| hostdisk_match(struct devsw *devsw, const char *devspec) | hostdisk_match(struct devsw *devsw, const char *devspec) | ||||
| { | { | ||||
| hdinfo_t *hd; | hdinfo_t *hd; | ||||
| const char *colon; | const char *colon; | ||||
| char *cp; | char *cp; | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||