Module Name:    src
Committed By:   christos
Date:           Sun Aug 30 07:50:34 UTC 2015

Modified Files:
        src/sys/arch/x86/pci: tco.c

Log Message:
print the configuration information early so that it does not get intermingled
with possible error prints.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/pci/tco.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/arch/x86/pci/tco.c
diff -u src/sys/arch/x86/pci/tco.c:1.1 src/sys/arch/x86/pci/tco.c:1.2
--- src/sys/arch/x86/pci/tco.c:1.1	Sat May  2 22:50:59 2015
+++ src/sys/arch/x86/pci/tco.c	Sun Aug 30 03:50:34 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: tco.c,v 1.1 2015/05/03 02:50:59 pgoyette Exp $	*/
+/*	$NetBSD: tco.c,v 1.2 2015/08/30 07:50:34 christos Exp $	*/
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tco.c,v 1.1 2015/05/03 02:50:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tco.c,v 1.2 2015/08/30 07:50:34 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -112,6 +112,9 @@ tco_attach(device_t parent, device_t sel
 	sc->sc_pcib = ta->ta_pcib;
 	sc->sc_has_rcba = ta->ta_has_rcba;
 
+	aprint_normal(": TCO (watchdog) timer configured.\n");
+	aprint_naive("\n");
+
 	/* Explicitly stop the TCO timer. */
 	tcotimer_stop(sc);
 
@@ -160,8 +163,6 @@ tco_attach(device_t parent, device_t sel
 	}
 	sc->sc_smw.smw_period = lpcib_tcotimer_tick_to_second(sc->sc_max_t);
 
-	aprint_normal(": TCO (watchdog) timer configured.\n");
-	aprint_naive("\n");
 	aprint_verbose_dev(self, "Min/Max interval %u/%u seconds\n",
 		lpcib_tcotimer_tick_to_second(sc->sc_min_t),
 		lpcib_tcotimer_tick_to_second(sc->sc_max_t));

Reply via email to