Module Name:    src
Committed By:   msaitoh
Date:           Tue Jul 19 07:44:03 UTC 2016

Modified Files:
        src/sys/kern: subr_autoconf.c

Log Message:
 Print number of attach error regardless of AB_QUIET and AB_SILENT.


To generate a diff of this commit:
cvs rdiff -u -r1.246 -r1.247 src/sys/kern/subr_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.246 src/sys/kern/subr_autoconf.c:1.247
--- src/sys/kern/subr_autoconf.c:1.246	Fri Jul 15 01:17:47 2016
+++ src/sys/kern/subr_autoconf.c	Tue Jul 19 07:44:03 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.246 2016/07/15 01:17:47 pgoyette Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.247 2016/07/19 07:44:03 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.246 2016/07/15 01:17:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.247 2016/07/19 07:44:03 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -2179,11 +2179,11 @@ config_finalize(void)
 			printf_nolog(" done.\n");
 		}
 		mutex_exit(&config_misc_lock);
-		if (errcnt != 0) {
-			printf("WARNING: %d error%s while detecting hardware; "
-			    "check system log.\n", errcnt,
-			    errcnt == 1 ? "" : "s");
-		}
+	}
+	if (errcnt != 0) {
+		printf("WARNING: %d error%s while detecting hardware; "
+		    "check system log.\n", errcnt,
+		    errcnt == 1 ? "" : "s");
 	}
 }
 

Reply via email to