diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-25 09:06:52 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-05-25 09:06:52 +0000 |
commit | 2613d3fec9b3f28007266c98343325e0212bb3c4 (patch) | |
tree | 17d4acc1a611a3589569811ff61368d1382b85f5 /sys/kern/subr_disklabel.c | |
parent | 925db41fa566471d7418c79b7bee5e347234f4ee (diff) | |
download | src-2613d3fec9b3f28007266c98343325e0212bb3c4.tar.gz src-2613d3fec9b3f28007266c98343325e0212bb3c4.zip |
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.
Notes
Notes:
svn path=/head/; revision=77166
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r-- | sys/kern/subr_disklabel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index 6f948b02dffd..3a9ad24b19c2 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; |