printf -> kprintf, sprintf -> ksprintf

This commit is contained in:
christos 1996-10-10 22:25:05 +00:00
parent 4c14cd79b2
commit 5d85fa8122
5 changed files with 77 additions and 77 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: audio.c,v 1.29 1996/09/07 12:40:53 mycroft Exp $ */
/* $NetBSD: audio.c,v 1.30 1996/10/10 22:25:05 christos Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -163,15 +163,15 @@ void
audio_printsc(sc)
struct audio_softc *sc;
{
printf("hwhandle %p hw_if %p ", sc->hw_hdl, sc->hw_if);
printf("open %x mode %x\n", sc->sc_open, sc->sc_mode);
printf("rchan %x wchan %x ", sc->sc_rchan, sc->sc_wchan);
printf("rring blk %x pring nblk %x\n", sc->rr.nblk, sc->pr.nblk);
printf("rbus %x pbus %x ", sc->sc_rbus, sc->sc_pbus);
printf("blksz %d sib %d ", sc->sc_blksize, sc->sc_smpl_in_blk);
printf("sp50ms %d backlog %d\n", sc->sc_50ms, sc->sc_backlog);
printf("hiwat %d lowat %d rblks %d\n", sc->sc_hiwat, sc->sc_lowat,
sc->sc_rblks);
kprintf("hwhandle %p hw_if %p ", sc->hw_hdl, sc->hw_if);
kprintf("open %x mode %x\n", sc->sc_open, sc->sc_mode);
kprintf("rchan %x wchan %x ", sc->sc_rchan, sc->sc_wchan);
kprintf("rring blk %x pring nblk %x\n", sc->rr.nblk, sc->pr.nblk);
kprintf("rbus %x pbus %x ", sc->sc_rbus, sc->sc_pbus);
kprintf("blksz %d sib %d ", sc->sc_blksize, sc->sc_smpl_in_blk);
kprintf("sp50ms %d backlog %d\n", sc->sc_50ms, sc->sc_backlog);
kprintf("hiwat %d lowat %d rblks %d\n", sc->sc_hiwat, sc->sc_lowat,
sc->sc_rblks);
}
#endif
@ -264,7 +264,7 @@ audio_hardware_attach(hwp, hdlp)
hwp->audio_unit = naudio++;
#ifdef AUDIO_DEBUG
printf("audio: unit %d attached\n", hwp->audio_unit);
kprintf("audio: unit %d attached\n", hwp->audio_unit);
#endif
return(0);
@ -1009,7 +1009,7 @@ audio_write(dev, uio, ioflag)
if ((tp + towrite) > cb->ep) {
DPRINTF(("audio_write: overwrite tp=%p towrite=%d ep=0x%x bs=%d\n",
tp, towrite, cb->ep, blocksize));
printf("audio_write: overwrite tp=%p towrite=%d ep=%p\n",
kprintf("audio_write: overwrite tp=%p towrite=%d ep=%p\n",
tp, towrite, cb->ep);
tp = cb->bp;
}
@ -1034,7 +1034,7 @@ audio_write(dev, uio, ioflag)
}
if (error) {
#ifdef AUDIO_DEBUG
printf("audio_write:(1) uiomove failed %d; cc=%d tp=%p bs=%d\n", error, cc, tp, blocksize);
kprintf("audio_write:(1) uiomove failed %d; cc=%d tp=%p bs=%d\n", error, cc, tp, blocksize);
#endif
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/* $NetBSD: ccd.c,v 1.34 1996/10/10 22:25:07 christos Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -192,7 +192,7 @@ ccdattach(num)
ccddevs = (struct ccddevice *)malloc(num * sizeof(struct ccddevice),
M_DEVBUF, M_NOWAIT);
if ((ccd_softc == NULL) || (ccddevs == NULL)) {
printf("WARNING: no memory for concatenated disks\n");
kprintf("WARNING: no memory for concatenated disks\n");
if (ccd_softc != NULL)
free(ccd_softc, M_DEVBUF);
if (ccddevs != NULL)
@ -225,13 +225,13 @@ ccdinit(ccd, cpaths, p)
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("ccdinit: unit %d\n", ccd->ccd_unit);
kprintf("ccdinit: unit %d\n", ccd->ccd_unit);
#endif
cs->sc_size = 0;
cs->sc_ileave = ccd->ccd_interleave;
cs->sc_nccdisks = ccd->ccd_ndev;
sprintf(cs->sc_xname, "ccd%d", ccd->ccd_unit); /* XXX */
ksprintf(cs->sc_xname, "ccd%d", ccd->ccd_unit); /* XXX */
/* Allocate space for the component info. */
cs->sc_cinfo = malloc(cs->sc_nccdisks * sizeof(struct ccdcinfo),
@ -257,7 +257,7 @@ ccdinit(ccd, cpaths, p)
if (error) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: can't copy path, error = %d\n",
kprintf("%s: can't copy path, error = %d\n",
cs->sc_xname, error);
#endif
free(cs->sc_cinfo, M_DEVBUF);
@ -272,7 +272,7 @@ ccdinit(ccd, cpaths, p)
if ((error = VOP_GETATTR(vp, &va, p->p_ucred, p)) != 0) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: %s: getattr failed %s = %d\n",
kprintf("%s: %s: getattr failed %s = %d\n",
cs->sc_xname, ci->ci_path,
"error", error);
#endif
@ -290,7 +290,7 @@ ccdinit(ccd, cpaths, p)
if (error) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: %s: ioctl failed, error = %d\n",
kprintf("%s: %s: ioctl failed, error = %d\n",
cs->sc_xname, ci->ci_path, error);
#endif
free(ci->ci_path, M_DEVBUF);
@ -305,7 +305,7 @@ ccdinit(ccd, cpaths, p)
} else {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: %s: incorrect partition type\n",
kprintf("%s: %s: incorrect partition type\n",
cs->sc_xname, ci->ci_path);
#endif
free(ci->ci_path, M_DEVBUF);
@ -323,7 +323,7 @@ ccdinit(ccd, cpaths, p)
if (size == 0) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: %s: size == 0\n",
kprintf("%s: %s: size == 0\n",
cs->sc_xname, ci->ci_path);
#endif
free(ci->ci_path, M_DEVBUF);
@ -345,7 +345,7 @@ ccdinit(ccd, cpaths, p)
(cs->sc_ileave < (maxsecsize / DEV_BSIZE))) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: interleave must be at least %d\n",
kprintf("%s: interleave must be at least %d\n",
cs->sc_xname, (maxsecsize / DEV_BSIZE));
#endif
free(ci->ci_path, M_DEVBUF);
@ -362,7 +362,7 @@ ccdinit(ccd, cpaths, p)
if (cs->sc_ileave == 0) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: mirroring requires interleave\n",
kprintf("%s: mirroring requires interleave\n",
cs->sc_xname);
#endif
free(ci->ci_path, M_DEVBUF);
@ -372,7 +372,7 @@ ccdinit(ccd, cpaths, p)
if (cs->sc_nccdisks % 2) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("%s: mirroring requires even # of components\n",
kprintf("%s: mirroring requires even # of components\n",
cs->sc_xname);
#endif
free(ci->ci_path, M_DEVBUF);
@ -430,7 +430,7 @@ ccdinterleave(cs, unit)
#ifdef DEBUG
if (ccddebug & CCDB_INIT)
printf("ccdinterleave(%p): ileave %d\n", cs, cs->sc_ileave);
kprintf("ccdinterleave(%p): ileave %d\n", cs, cs->sc_ileave);
#endif
/*
* Allocate an interleave table.
@ -535,7 +535,7 @@ ccdopen(dev, flags, fmt, p)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdopen(%x, %x)\n", dev, flags);
kprintf("ccdopen(%x, %x)\n", dev, flags);
#endif
if (unit >= numccd)
return (ENXIO);
@ -598,7 +598,7 @@ ccdclose(dev, flags, fmt, p)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdclose(%x, %x)\n", dev, flags);
kprintf("ccdclose(%x, %x)\n", dev, flags);
#endif
if (unit >= numccd)
@ -639,7 +639,7 @@ ccdstrategy(bp)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdstrategy(%p): unit %d\n", bp, unit);
kprintf("ccdstrategy(%p): unit %d\n", bp, unit);
#endif
if ((cs->sc_flags & CCDF_INITED) == 0) {
bp->b_error = ENXIO;
@ -688,7 +688,7 @@ ccdstart(cs, bp)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdstart(%p, %p)\n", cs, bp);
kprintf("ccdstart(%p, %p)\n", cs, bp);
#endif
/* Instrumentation. */
@ -746,7 +746,7 @@ ccdbuffer(cs, bp, bn, addr, bcount, cbpp)
#ifdef DEBUG
if (ccddebug & CCDB_IO)
printf("ccdbuffer(%p, %p, %d, %p, %ld)\n",
kprintf("ccdbuffer(%p, %p, %d, %p, %ld)\n",
cs, bp, bn, addr, bcount);
#endif
/*
@ -833,9 +833,9 @@ ccdbuffer(cs, bp, bn, addr, bcount, cbpp)
#ifdef DEBUG
if (ccddebug & CCDB_IO)
printf(" dev %x(u%d): cbp %p bn %d addr %p bcnt %ld\n",
ci->ci_dev, ci-cs->sc_cinfo, cbp, cbp->cb_buf.b_blkno,
cbp->cb_buf.b_data, cbp->cb_buf.b_bcount);
kprintf(" dev %x(u%d): cbp %p bn %d addr %p bcnt %ld\n",
ci->ci_dev, ci-cs->sc_cinfo, cbp, cbp->cb_buf.b_blkno,
cbp->cb_buf.b_data, cbp->cb_buf.b_bcount);
#endif
/*
@ -862,7 +862,7 @@ ccdintr(cs, bp)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdintr(%p, %p)\n", cs, bp);
kprintf("ccdintr(%p, %p)\n", cs, bp);
#endif
/*
* Request is done for better or worse, wakeup the top half.
@ -892,14 +892,14 @@ ccdiodone(vbp)
s = splbio();
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdiodone(%p)\n", cbp);
kprintf("ccdiodone(%p)\n", cbp);
if (ccddebug & CCDB_IO) {
if (cbp->cb_flags & CBF_MIRROR)
printf("ccdiodone: mirror component\n");
kprintf("ccdiodone: mirror component\n");
else
printf("ccdiodone: bp %p bcount %ld resid %ld\n",
kprintf("ccdiodone: bp %p bcount %ld resid %ld\n",
bp, bp->b_bcount, bp->b_resid);
printf(" dev %x(u%d), cbp %p bn %d addr %p bcnt %ld\n",
kprintf(" dev %x(u%d), cbp %p bn %d addr %p bcnt %ld\n",
cbp->cb_buf.b_dev, cbp->cb_comp, cbp,
cbp->cb_buf.b_blkno, cbp->cb_buf.b_data,
cbp->cb_buf.b_bcount);
@ -916,7 +916,7 @@ ccdiodone(vbp)
comptype = "";
}
printf("%s: error %d on component %d%s\n",
kprintf("%s: error %d on component %d%s\n",
cs->sc_xname, bp->b_error, cbp->cb_comp, comptype);
}
count = cbp->cb_buf.b_bcount;
@ -951,7 +951,7 @@ ccdread(dev, uio, flags)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdread(%x, %p)\n", dev, uio);
kprintf("ccdread(%x, %p)\n", dev, uio);
#endif
if (unit >= numccd)
return (ENXIO);
@ -980,7 +980,7 @@ ccdwrite(dev, uio, flags)
#ifdef DEBUG
if (ccddebug & CCDB_FOLLOW)
printf("ccdwrite(%x, %p)\n", dev, uio);
kprintf("ccdwrite(%x, %p)\n", dev, uio);
#endif
if (unit >= numccd)
return (ENXIO);
@ -1057,14 +1057,14 @@ ccdioctl(dev, cmd, data, flag, p)
#ifdef DEBUG
if (ccddebug & CCDB_INIT)
for (i = 0; i < ccio->ccio_ndisks; ++i)
printf("ccdioctl: component %d: 0x%p\n",
kprintf("ccdioctl: component %d: 0x%p\n",
i, cpp[i]);
#endif
for (i = 0; i < ccio->ccio_ndisks; ++i) {
#ifdef DEBUG
if (ccddebug & CCDB_INIT)
printf("ccdioctl: lookedup = %d\n", lookedup);
kprintf("ccdioctl: lookedup = %d\n", lookedup);
#endif
if ((error = ccdlookup(cpp[i], p, &vpp[i])) != 0) {
for (j = 0; j < lookedup; ++j)
@ -1313,7 +1313,7 @@ ccdlookup(path, p, vpp)
if ((error = vn_open(&nd, FREAD|FWRITE, 0)) != 0) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("ccdlookup: vn_open error = %d\n", error);
kprintf("ccdlookup: vn_open error = %d\n", error);
#endif
return (error);
}
@ -1328,7 +1328,7 @@ ccdlookup(path, p, vpp)
if ((error = VOP_GETATTR(vp, &va, p->p_ucred, p)) != 0) {
#ifdef DEBUG
if (ccddebug & (CCDB_FOLLOW|CCDB_INIT))
printf("ccdlookup: getattr error = %d\n", error);
kprintf("ccdlookup: getattr error = %d\n", error);
#endif
VOP_UNLOCK(vp);
(void)vn_close(vp, FREAD|FWRITE, p->p_ucred, p);
@ -1405,7 +1405,7 @@ ccdgetdisklabel(dev)
/* It's actually extremely common to have unlabeled ccds. */
if (ccddebug & CCDB_LABEL)
if (errstring != NULL)
printf("%s: %s\n", cs->sc_xname, errstring);
kprintf("%s: %s\n", cs->sc_xname, errstring);
#endif
}
@ -1472,11 +1472,11 @@ printiinfo(ii)
register int ix, i;
for (ix = 0; ii->ii_ndisk; ix++, ii++) {
printf(" itab[%d]: #dk %d sblk %d soff %d",
ix, ii->ii_ndisk, ii->ii_startblk, ii->ii_startoff);
kprintf(" itab[%d]: #dk %d sblk %d soff %d",
ix, ii->ii_ndisk, ii->ii_startblk, ii->ii_startoff);
for (i = 0; i < ii->ii_ndisk; i++)
printf(" %d", ii->ii_index[i]);
printf("\n");
kprintf(" %d", ii->ii_index[i]);
kprintf("\n");
}
}
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/* $NetBSD: md.c,v 1.9 1996/10/10 22:25:08 christos Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@ -130,7 +130,7 @@ rdattach(n)
#ifdef DIAGNOSTIC
if (ramdisk_ndevs) {
printf("ramdisk: multiple attach calls?\n");
kprintf("ramdisk: multiple attach calls?\n");
return;
}
#endif
@ -151,13 +151,13 @@ rdattach(n)
sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK);
if (!sc) {
printf("ramdisk: malloc for attach failed!\n");
kprintf("ramdisk: malloc for attach failed!\n");
return;
}
bzero((caddr_t)sc, sizeof(*sc));
ramdisk_devs[i] = sc;
sc->sc_dev.dv_unit = i;
sprintf(sc->sc_dev.dv_xname, "rd%d", i);
ksprintf(sc->sc_dev.dv_xname, "rd%d", i);
rd_attach(NULL, &sc->sc_dev, NULL);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */
/* $NetBSD: ramdisk.c,v 1.9 1996/10/10 22:25:08 christos Exp $ */
/*
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@ -130,7 +130,7 @@ rdattach(n)
#ifdef DIAGNOSTIC
if (ramdisk_ndevs) {
printf("ramdisk: multiple attach calls?\n");
kprintf("ramdisk: multiple attach calls?\n");
return;
}
#endif
@ -151,13 +151,13 @@ rdattach(n)
sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK);
if (!sc) {
printf("ramdisk: malloc for attach failed!\n");
kprintf("ramdisk: malloc for attach failed!\n");
return;
}
bzero((caddr_t)sc, sizeof(*sc));
ramdisk_devs[i] = sc;
sc->sc_dev.dv_unit = i;
sprintf(sc->sc_dev.dv_xname, "rd%d", i);
ksprintf(sc->sc_dev.dv_xname, "rd%d", i);
rd_attach(NULL, &sc->sc_dev, NULL);
}
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: vnd.c,v 1.28 1996/09/25 02:22:10 christos Exp $ */
/* $NetBSD: vnd.c,v 1.29 1996/10/10 22:25:09 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -150,7 +150,7 @@ vndattach(num)
size = num * sizeof(struct vnd_softc);
mem = malloc(size, M_DEVBUF, M_NOWAIT);
if (mem == NULL) {
printf("WARNING: no memory for vnode disks\n");
kprintf("WARNING: no memory for vnode disks\n");
return;
}
bzero(mem, size);
@ -174,7 +174,7 @@ vndopen(dev, flags, mode, p)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndopen(%x, %x, %x, %p)\n", dev, flags, mode, p);
kprintf("vndopen(%x, %x, %x, %p)\n", dev, flags, mode, p);
#endif
if (unit >= numvnd)
return (ENXIO);
@ -215,7 +215,7 @@ vndclose(dev, flags, mode, p)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndclose(%x, %x, %x, %p)\n", dev, flags, mode, p);
kprintf("vndclose(%x, %x, %x, %p)\n", dev, flags, mode, p);
#endif
if (unit >= numvnd)
@ -262,7 +262,7 @@ vndstrategy(bp)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndstrategy(%p): unit %d\n", bp, unit);
kprintf("vndstrategy(%p): unit %d\n", bp, unit);
#endif
if ((vnd->sc_flags & VNF_INITED) == 0) {
bp->b_error = ENXIO;
@ -309,8 +309,8 @@ vndstrategy(bp)
sz = resid;
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndstrategy: vp %p/%p bn %x/%x sz %x\n",
vnd->sc_vp, vp, bn, nbn, sz);
kprintf("vndstrategy: vp %p/%p bn %x/%x sz %x\n",
vnd->sc_vp, vp, bn, nbn, sz);
#endif
nbp = getvndbuf();
@ -389,7 +389,7 @@ vndstart(vnd)
vnd->sc_tab.b_actf = bp->b_actf;
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndstart(%ld): bp %p vp %p blkno %x addr %p cnt %lx\n",
kprintf("vndstart(%ld): bp %p vp %p blkno %x addr %p cnt %lx\n",
(long) (vnd-vnd_softc), bp, bp->b_vp, bp->b_blkno,
bp->b_data, bp->b_bcount);
#endif
@ -414,7 +414,7 @@ vndiodone(bp)
s = splbio();
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndiodone(%ld): vbp %p vp %p blkno %x addr %p cnt %lx\n",
kprintf("vndiodone(%ld): vbp %p vp %p blkno %x addr %p cnt %lx\n",
(long) (vnd-vnd_softc), vbp, vbp->vb_buf.b_vp,
vbp->vb_buf.b_blkno, vbp->vb_buf.b_data,
vbp->vb_buf.b_bcount);
@ -423,7 +423,7 @@ vndiodone(bp)
if (vbp->vb_buf.b_error) {
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndiodone: vbp %p error %d\n", vbp,
kprintf("vndiodone: vbp %p error %d\n", vbp,
vbp->vb_buf.b_error);
#endif
pbp->b_flags |= B_ERROR;
@ -435,7 +435,7 @@ vndiodone(bp)
if (pbp->b_resid == 0) {
#ifdef DEBUG
if (vnddebug & VDB_IO)
printf("vndiodone: pbp %p iodone\n", pbp);
kprintf("vndiodone: pbp %p iodone\n", pbp);
#endif
biodone(pbp);
}
@ -458,7 +458,7 @@ vndread(dev, uio, flags)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndread(%x, %p)\n", dev, uio);
kprintf("vndread(%x, %p)\n", dev, uio);
#endif
if (unit >= numvnd)
@ -483,7 +483,7 @@ vndwrite(dev, uio, flags)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndwrite(%x, %p)\n", dev, uio);
kprintf("vndwrite(%x, %p)\n", dev, uio);
#endif
if (unit >= numvnd)
@ -514,7 +514,7 @@ vndioctl(dev, cmd, data, flag, p)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndioctl(%x, %lx, %p, %x, %p): unit %d\n",
kprintf("vndioctl(%x, %lx, %p, %x, %p): unit %d\n",
dev, cmd, data, flag, p, unit);
#endif
error = suser(p->p_ucred, &p->p_acflag);
@ -565,13 +565,13 @@ vndioctl(dev, cmd, data, flag, p)
vnd->sc_flags |= VNF_INITED;
#ifdef DEBUG
if (vnddebug & VDB_INIT)
printf("vndioctl: SET vp %p size %lx\n",
kprintf("vndioctl: SET vp %p size %lx\n",
vnd->sc_vp, (unsigned long) vnd->sc_size);
#endif
/* Attach the disk. */
bzero(vnd->sc_xname, sizeof(vnd->sc_xname)); /* XXX */
sprintf(vnd->sc_xname, "vnd%d", unit); /* XXX */
ksprintf(vnd->sc_xname, "vnd%d", unit); /* XXX */
vnd->sc_dkdev.dk_name = vnd->sc_xname;
disk_attach(&vnd->sc_dkdev);
@ -603,7 +603,7 @@ vndioctl(dev, cmd, data, flag, p)
vndclear(vnd);
#ifdef DEBUG
if (vnddebug & VDB_INIT)
printf("vndioctl: CLRed\n");
kprintf("vndioctl: CLRed\n");
#endif
/* Detatch the disk. */
@ -704,7 +704,7 @@ vndclear(vnd)
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
printf("vndclear(%p): vp %p\n", vnd, vp);
kprintf("vndclear(%p): vp %p\n", vnd, vp);
#endif
vnd->sc_flags &= ~VNF_INITED;
if (vp == (struct vnode *)0)