Module Name:    src
Committed By:   mrg
Date:           Tue Mar 22 04:48:25 UTC 2016

Modified Files:
        src/sys/arch/pmax/pmax: dec_3maxplus.c

Log Message:
revert part of rev 1.66 that converted a tri-state variable into
a bool while leaving a comparision against "< 3".


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/pmax/pmax/dec_3maxplus.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/pmax/pmax/dec_3maxplus.c
diff -u src/sys/arch/pmax/pmax/dec_3maxplus.c:1.70 src/sys/arch/pmax/pmax/dec_3maxplus.c:1.71
--- src/sys/arch/pmax/pmax/dec_3maxplus.c:1.70	Mon Mar 24 19:31:40 2014
+++ src/sys/arch/pmax/pmax/dec_3maxplus.c	Tue Mar 22 04:48:25 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3maxplus.c,v 1.70 2014/03/24 19:31:40 christos Exp $ */
+/* $NetBSD: dec_3maxplus.c,v 1.71 2016/03/22 04:48:25 mrg Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.70 2014/03/24 19:31:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.71 2016/03/22 04:48:25 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -289,7 +289,7 @@ dec_3maxplus_intr_establish(device_t dev
 static void
 dec_3maxplus_ioasic_intr(void)
 {
-	static bool warned = false;
+	static int warned = 0;
 	bool ifound;
 	uint32_t imsk, intr, can_serve, xxxintr;
 
@@ -309,10 +309,10 @@ dec_3maxplus_ioasic_intr(void)
 
 		if (warned && !(can_serve & KN03_INTR_PSWARN)) {
 			printf("%s\n", "Power supply ok now.");
-			warned = false;
+			warned = 0;
 		}
 		if ((can_serve & KN03_INTR_PSWARN) && (warned < 3)) {
-			warned = true;
+			warned++;
 			printf("%s\n", "Power supply overheating");
 		}
 

Reply via email to