kboot: Fix hostdisk fmtdev

The device name was totally wrong. It should be "/dev/mumble:" not just
"mumble".

Sponsored by:		Netflix
Reviewed by:		tsoome
Differential Revision:	https://reviews.freebsd.org/D38318
This commit is contained in:
Warner Losh 2023-02-02 13:03:39 -07:00
parent 9fb276ea80
commit 81d71f94ca

View file

@ -429,8 +429,10 @@ hostdisk_print(int verbose)
static char *
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