Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dkwedge Don't complain about not being able to open ...



details:   https://anonhg.NetBSD.org/src/rev/69b19cd8d2cf
branches:  trunk
changeset: 789003:69b19cd8d2cf
user:      soren <soren%NetBSD.org@localhost>
date:      Sat Aug 03 18:30:57 2013 +0000

description:
Don't complain about not being able to open empty removable media drives.

diffstat:

 sys/dev/dkwedge/dk.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 64607d597757 -r 69b19cd8d2cf sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c      Sat Aug 03 16:07:35 2013 +0000
+++ b/sys/dev/dkwedge/dk.c      Sat Aug 03 18:30:57 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.66 2013/05/29 00:47:48 christos Exp $ */
+/*     $NetBSD: dk.c,v 1.67 2013/08/03 18:30:57 soren Exp $    */
 
 /*-
  * Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.66 2013/05/29 00:47:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.67 2013/08/03 18:30:57 soren Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dkwedge.h"
@@ -846,8 +846,9 @@
 
        error = VOP_OPEN(vp, FREAD | FSILENT, NOCRED);
        if (error) {
-               aprint_error("%s: unable to open device, error = %d\n",
-                   pdk->dk_name, error);
+               if (error != ENODEV)
+                       aprint_error("%s: unable to open device, error = %d\n",
+                           pdk->dk_name, error);
                vput(vp);
                goto out;
        }



Home | Main Index | Thread Index | Old Index