summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-10-28 09:39:28 +0000
committerphk <phk@FreeBSD.org>2001-10-28 09:39:28 +0000
commit8c752a11c0bed8bb94fd04769efb2cec3237e7d8 (patch)
tree28d0eb4336690e72a7c37fcb1d4d85951c43ff0d /sys/kern/kern_conf.c
parentf757fda60d8e586e6ba39ba525f615b8cb3fe0ce (diff)
downloadFreeBSD-src-8c752a11c0bed8bb94fd04769efb2cec3237e7d8.zip
FreeBSD-src-8c752a11c0bed8bb94fd04769efb2cec3237e7d8.tar.gz
Fix a problem in the disk related hack where device nodes for a physically
non-existent disk in a legacy /dev on a DEVFS system would panic the system if stat(2)'ed. Do not whine about anonymous device nodes not having a si_devsw, they're not supposed to.
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index ef07c55..7a5420a 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -87,7 +87,7 @@ devsw(dev_t dev)
if (dev->si_devsw)
return (dev->si_devsw);
if (devfs_present)
- printf("WARNING: devsw() called on %s %u/%u\n", dev->si_name, major(dev), minor(dev));
+ return (NULL);
return(cdevsw[major(dev)]);
}
OpenPOWER on IntegriCloud