Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/ti Add a line break before rnd_attach_source so...



details:   https://anonhg.NetBSD.org/src/rev/2a32ea8504ec
branches:  trunk
changeset: 934012:2a32ea8504ec
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 03 15:59:22 2020 +0000

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

diffstat:

 sys/arch/arm/ti/ti_rng.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 1c8a04a0006c -r 2a32ea8504ec sys/arch/arm/ti/ti_rng.c
--- a/sys/arch/arm/ti/ti_rng.c  Wed Jun 03 15:47:22 2020 +0000
+++ b/sys/arch/arm/ti/ti_rng.c  Wed Jun 03 15:59:22 2020 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
                    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



Home | Main Index | Thread Index | Old Index