summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disklabel.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
committerphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
commit9c72381e09a5593df856423c995563779f7535e8 (patch)
tree3471f1e5faa7dd2bf47573f428c3a46114bac456 /sys/kern/subr_disklabel.c
parenta261857e2d7ff67439a916b9f0b8db5e91302af0 (diff)
downloadFreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.zip
FreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.tar.gz
We don't need to pass the diskname argument all over the diskslice/label
code, we can find the name from any convenient dev_t
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r--sys/kern/subr_disklabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index a52efbd..e3a734c 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -373,7 +373,7 @@ diskerr(bp, dname, what, pri, blkdone, lp)
pr = addlog;
} else
pr = printf;
- sname = dsname(dname, unit, slice, part, partname);
+ sname = dsname(bp->b_dev, unit, slice, part, partname);
(*pr)("%s%s: %s %sing fsbn ", sname, partname, what,
bp->b_flags & B_READ ? "read" : "writ");
sn = bp->b_blkno;
OpenPOWER on IntegriCloud