Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern if the root file-system is not yet mounted, hide "v...
details: https://anonhg.NetBSD.org/src/rev/380aca4bdd6e
branches: trunk
changeset: 806564:380aca4bdd6e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Feb 28 23:04:34 2015 +0000
description:
if the root file-system is not yet mounted, hide "vfs load failed" spam with options DEBUG
diffstat:
sys/kern/kern_module.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 97456db817e8 -r 380aca4bdd6e sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Sat Feb 28 22:53:25 2015 +0000
+++ b/sys/kern/kern_module.c Sat Feb 28 23:04:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.102 2014/12/02 13:00:38 pooka Exp $ */
+/* $NetBSD: kern_module.c,v 1.103 2015/02/28 23:04:34 jmcneill 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.102 2014/12/02 13:00:38 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.103 2015/02/28 23:04:34 jmcneill Exp $");
#define _MODULE_INTERNAL
@@ -966,7 +966,8 @@
* available for each architecture, so we don't
* print an error if they are missing.
*/
- if (modclass != MODULE_CLASS_EXEC || error != ENOENT)
+ if ((modclass != MODULE_CLASS_EXEC || error != ENOENT) &&
+ root_device != NULL)
module_error("vfs load failed for `%s', "
"error %d", name, error);
#endif
Home |
Main Index |
Thread Index |
Old Index