summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2006-05-17 06:37:14 +0000
committerphk <phk@FreeBSD.org>2006-05-17 06:37:14 +0000
commit2ace540d1f03d5efc4e4669657ab847e826a5d3c (patch)
tree3acf06a146364c9e1ef943b202649c8257a39434 /sys/kern
parentc0e3faf72685e6c02e8509c92408f672e27c7096 (diff)
downloadFreeBSD-src-2ace540d1f03d5efc4e4669657ab847e826a5d3c.zip
FreeBSD-src-2ace540d1f03d5efc4e4669657ab847e826a5d3c.tar.gz
Make the printfs relating to purging threads from a device less intrusive.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index b44df46..9987063 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -661,13 +661,12 @@ destroy_devl(struct cdev *dev)
csw = dev->si_devsw;
dev->si_devsw = NULL; /* already NULL for SI_ALIAS */
while (csw != NULL && csw->d_purge != NULL && dev->si_threadcount) {
- printf("Purging %lu threads from %s\n",
- dev->si_threadcount, devtoname(dev));
csw->d_purge(dev);
msleep(csw, &devmtx, PRIBIO, "devprg", hz/10);
+ if (dev->si_threadcount)
+ printf("Still %lu threads in %s\n",
+ dev->si_threadcount, devtoname(dev));
}
- if (csw != NULL && csw->d_purge != NULL)
- printf("All threads purged from %s\n", devtoname(dev));
dev->si_drv1 = 0;
dev->si_drv2 = 0;
OpenPOWER on IntegriCloud