Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Correct one more instance of checking flags i...
details: https://anonhg.NetBSD.org/src/rev/c8a8037115da
branches: trunk
changeset: 752099:c8a8037115da
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Feb 14 16:22:09 2010 +0000
description:
Correct one more instance of checking flags in the wrong place.
diffstat:
sys/dev/sysmon/sysmon_envsys_events.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1293079b6f45 -r c8a8037115da sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c Sun Feb 14 11:54:03 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c Sun Feb 14 16:22:09 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.81 2010/02/14 16:22:09 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.80 2010/02/13 19:34:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.81 2010/02/14 16:22:09 pgoyette Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -699,7 +699,7 @@
((edata->upropset & (valid)) && \
(edata->value_cur rel (edata->limits.lim)))
- if ((edata->limits.sel_flags & PROP_DRIVER_LIMITS) == 0) {
+ if ((edata->upropset & PROP_DRIVER_LIMITS) == 0) {
if __EXCEED_LIM(PROP_CRITMIN | PROP_BATTCAP,
sel_critmin, <)
edata->state = ENVSYS_SCRITUNDER;
Home |
Main Index |
Thread Index |
Old Index