From: Ben Gras Date: Tue, 17 Jan 2006 17:55:35 +0000 (+0000) Subject: Not having a driver isn't a print-worthy error. Just return ENXIO. X-Git-Tag: v3.1.2a~436 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/style.css?a=commitdiff_plain;h=966905d29552df83b8561b18f0a81c36ed2407bc;p=minix.git Not having a driver isn't a print-worthy error. Just return ENXIO. --- diff --git a/servers/fs/device.c b/servers/fs/device.c index 86611d340..e65ff9abe 100644 --- a/servers/fs/device.c +++ b/servers/fs/device.c @@ -50,8 +50,7 @@ int flags; /* mode bits and flags */ if (major >= NR_DEVICES) major = 0; dp = &dmap[major]; if (dp->dmap_driver == NONE) { - printf("FS: open: no driver for dev %x\n", dev); - return EIO; + return ENXIO; } r = (*dp->dmap_opcl)(DEV_OPEN, dev, proc, flags); if (r == SUSPEND) panic(__FILE__,"suspend on open from", dp->dmap_driver);