Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Switch SSP init output to aprint_debug() instead of...



details:   https://anonhg.NetBSD.org/src/rev/6ca3f805532b
branches:  trunk
changeset: 751355:6ca3f805532b
user:      njoly <njoly%NetBSD.org@localhost>
date:      Mon Feb 01 16:14:58 2010 +0000

description:
Switch SSP init output to aprint_debug() instead of aprint_normal()
under DIAGNOSTIC ifdefs.

diffstat:

 sys/kern/kern_ssp.c |  14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 1cb8e5f531e7 -r 6ca3f805532b sys/kern/kern_ssp.c
--- a/sys/kern/kern_ssp.c       Mon Feb 01 16:12:36 2010 +0000
+++ b/sys/kern/kern_ssp.c       Mon Feb 01 16:14:58 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_ssp.c,v 1.4 2010/02/01 12:58:04 njoly Exp $       */
+/*     $NetBSD: kern_ssp.c,v 1.5 2010/02/01 16:14:58 njoly Exp $       */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ssp.c,v 1.4 2010/02/01 12:58:04 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ssp.c,v 1.5 2010/02/01 16:14:58 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -48,9 +48,7 @@
 {
        int s;
 
-#ifdef DIAGNOSTIC
-       aprint_normal("Initializing SSP: ");
-#endif
+       aprint_debug("Initializing SSP: ");
        /*
         * We initialize ssp here carefully:
         *      1. after we got some entropy
@@ -64,11 +62,9 @@
        for (i = 0; i < __arraycount(guard); i++)
                __stack_chk_guard[i] = guard[i];
        splx(s);
-#ifdef DIAGNOSTIC
        for (i = 0; i < __arraycount(guard); i++)
-               aprint_normal("%lx ", guard[i]);
-       aprint_normal("\n");
-#endif
+               aprint_debug("%lx ", guard[i]);
+       aprint_debug("\n");
 }
 #else
 void



Home | Main Index | Thread Index | Old Index