summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-05-25 09:06:52 +0000
committerphk <phk@FreeBSD.org>2001-05-25 09:06:52 +0000
commit977405e25bbebb3d0db0659d49b4dbcf1e727bcb (patch)
tree517e7e0a25eebc10417325d215a42c5c1e25af6e
parent405abd74e367424bd63e95bf42c6a3b0eabccff7 (diff)
downloadFreeBSD-src-977405e25bbebb3d0db0659d49b4dbcf1e727bcb.zip
FreeBSD-src-977405e25bbebb3d0db0659d49b4dbcf1e727bcb.tar.gz
Use the name given to the dev_t, rather than creating our own.
This makes it possible to give sensible information for /dev/fd.720 and similar "special" devices.
-rw-r--r--sys/kern/subr_disklabel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index 6f948b0..3a9ad24 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -359,7 +359,8 @@ diskerr(bp, what, blkdone, lp)
char *sname;
daddr_t sn;
- sname = dsname(bp->bio_dev, unit, slice, part, partname);
+ *partname = '\0';
+ sname = bp->bio_dev->si_name;
printf("%s%s: %s %sing fsbn ", sname, partname, what,
bp->bio_cmd == BIO_READ ? "read" : "writ");
sn = bp->bio_blkno;
OpenPOWER on IntegriCloud