Source-Changes-HG archive

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

[src/trunk]: src/sys/kern downgrade an error to debug.



details:   https://anonhg.NetBSD.org/src/rev/665a396db6b9
branches:  trunk
changeset: 785681:665a396db6b9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 24 22:06:37 2013 +0000

description:
downgrade an error to debug.

diffstat:

 sys/kern/kern_module.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r f6950946f2b1 -r 665a396db6b9 sys/kern/kern_module.c
--- a/sys/kern/kern_module.c    Sun Mar 24 21:00:22 2013 +0000
+++ b/sys/kern/kern_module.c    Sun Mar 24 22:06:37 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_module.c,v 1.90 2013/03/10 04:25:06 christos Exp $        */
+/*     $NetBSD: kern_module.c,v 1.91 2013/03/24 22:06:37 christos Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.90 2013/03/10 04:25:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.91 2013/03/24 22:06:37 christos Exp $");
 
 #define _MODULE_INTERNAL
 
@@ -925,8 +925,10 @@
                error = module_load_vfs_vec(name, flags, autoload, mod,
                                            &filedict);
                if (error != 0) {
+#ifdef DEBUG
                        module_error("vfs load failed for `%s', error %d",
                            name, error);
+#endif
                        kmem_free(mod, sizeof(*mod));
                        depth--;
                        return error;



Home | Main Index | Thread Index | Old Index