Module Name:    src
Committed By:   jmcneill
Date:           Wed Jun  3 15:59:22 UTC 2020

Modified Files:
        src/sys/arch/arm/ti: ti_rng.c

Log Message:
Add a line break before rnd_attach_source so the "entropy: ready" announcement 
does not get mixed with device prints


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/ti/ti_rng.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/arm/ti/ti_rng.c
diff -u src/sys/arch/arm/ti/ti_rng.c:1.3 src/sys/arch/arm/ti/ti_rng.c:1.4
--- src/sys/arch/arm/ti/ti_rng.c:1.3	Thu Apr 30 03:40:53 2020
+++ src/sys/arch/arm/ti/ti_rng.c	Wed Jun  3 15:59:22 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_rng.c,v 1.3 2020/04/30 03:40:53 riastradh Exp $ */
+/* $NetBSD: ti_rng.c,v 1.4 2020/06/03 15:59:22 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcne...@invisible.ca>
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ti_rng.c,v 1.3 2020/04/30 03:40:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_rng.c,v 1.4 2020/06/03 15:59:22 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -112,12 +112,12 @@ ti_rng_attach(device_t parent, device_t 
 		    TRNG_CONTROL_ENABLE);
 	}
 
+	aprint_naive("\n");
+	aprint_normal(": RNG\n");
+
 	rndsource_setcb(&sc->sc_rndsource, ti_rng_callback, sc);
 	rnd_attach_source(&sc->sc_rndsource, device_xname(self), RND_TYPE_RNG,
 	    RND_FLAG_COLLECT_VALUE|RND_FLAG_HASCB);
-
-	aprint_naive("\n");
-	aprint_normal(": RNG\n");
 }
 
 static void

Reply via email to