Source-Changes-HG archive

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

[src/trunk]: src/sys/kern only print the magic number changing if not cold



details:   https://anonhg.NetBSD.org/src/rev/621782c6b73f
branches:  trunk
changeset: 500831:621782c6b73f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Dec 19 04:39:19 2000 +0000

description:
only print the magic number changing if not cold

diffstat:

 sys/kern/cnmagic.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r aa699a840672 -r 621782c6b73f sys/kern/cnmagic.c
--- a/sys/kern/cnmagic.c        Tue Dec 19 04:36:05 2000 +0000
+++ b/sys/kern/cnmagic.c        Tue Dec 19 04:39:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cnmagic.c,v 1.1 2000/11/08 22:41:59 eeh Exp $  */
+/*     $NetBSD: cnmagic.c,v 1.2 2000/12/19 04:39:19 mrg Exp $  */
 
 /*
  * Copyright (c) 2000 Eduardo Horvath
@@ -32,6 +32,7 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
+#include <sys/kernel.h>
 
 #define ENCODE_STATE(c, n) (short)(((c)&0x1ff)|(((n)&0x7f)<<9))
 
@@ -103,7 +104,8 @@
                default:
                        /* Transition to the next state. */
 #ifdef DEBUG
-                       printf("mag %d %x:%x\n", i, c, n);
+                       if (!cold)
+                               printf("mag %d %x:%x\n", i, c, n);
 #endif
                        m[i] = ENCODE_STATE(c, n);
                        break;



Home | Main Index | Thread Index | Old Index