From 8c752a11c0bed8bb94fd04769efb2cec3237e7d8 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 28 Oct 2001 09:39:28 +0000 Subject: 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. --- sys/kern/kern_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_conf.c') 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)]); } -- cgit v1.1