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.
This commit is contained in:
parent
925db41fa5
commit
2613d3fec9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user