Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon use unsigned type for flag bits.
details: https://anonhg.NetBSD.org/src/rev/711c2a329ab7
branches: trunk
changeset: 337535:711c2a329ab7
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Apr 18 14:44:44 2015 +0000
description:
use unsigned type for flag bits.
diffstat:
sys/dev/sysmon/sysmon_envsys_events.c | 6 +++---
sys/dev/sysmon/sysmonvar.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 70934c8806b0 -r 711c2a329ab7 sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c Sat Apr 18 14:21:41 2015 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c Sat Apr 18 14:44:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.114 2015/03/14 09:52:49 hannken Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.115 2015/04/18 14:44:44 mlelstv 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.114 2015/03/14 09:52:49 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.115 2015/04/18 14:44:44 mlelstv Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -784,7 +784,7 @@
}
DPRINTFOBJ(("%s: (%s) desc=%s sensor=%d type=%d state=%d units=%d "
- "value_cur=%d upropset=%d\n", __func__, sme->sme_name, edata->desc,
+ "value_cur=%d upropset=0x%04x\n", __func__, sme->sme_name, edata->desc,
edata->sensor, see->see_type, edata->state, edata->units,
edata->value_cur, edata->upropset));
diff -r 70934c8806b0 -r 711c2a329ab7 sys/dev/sysmon/sysmonvar.h
--- a/sys/dev/sysmon/sysmonvar.h Sat Apr 18 14:21:41 2015 +0000
+++ b/sys/dev/sysmon/sysmonvar.h Sat Apr 18 14:44:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmonvar.h,v 1.47 2015/04/13 16:33:25 riastradh Exp $ */
+/* $NetBSD: sysmonvar.h,v 1.48 2015/04/18 14:44:44 mlelstv Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -104,7 +104,7 @@
int32_t value_min; /* min value */
int32_t private; /* private data for drivers */
sysmon_envsys_lim_t limits; /* thresholds for monitoring */
- int upropset; /* userland property set? */
+ uint32_t upropset; /* userland property set? */
krndsource_t rnd_src; /* source element for rnd(4) */
char desc[ENVSYS_DESCLEN]; /* sensor description */
};
Home |
Main Index |
Thread Index |
Old Index