]> Zhao Yanbai Git Server - minix.git/commitdiff
Not having a driver isn't a print-worthy error. Just return ENXIO.
authorBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 17:55:35 +0000 (17:55 +0000)
committerBen Gras <ben@minix3.org>
Tue, 17 Jan 2006 17:55:35 +0000 (17:55 +0000)
servers/fs/device.c

index 86611d34050e347a6ff8c8c76145e046c146bd21..e65ff9abe8edd03ca27d2940b701cc91c141c2cb 100644 (file)
@@ -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);