From 3c34c4300e45ee1e9eab78a40da1a7dfb6cadc74 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Thu, 4 Aug 2005 13:01:44 +0000 Subject: Support for SENSOR_INTEGER. ok grange@, dlg@, henning@ --- sbin/sysctl/sysctl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 46a421e2e5f..898bc5d0ea5 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.125 2005/08/04 03:53:08 dlg Exp $ */ +/* $OpenBSD: sysctl.c,v 1.126 2005/08/04 13:00:44 jsg Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.125 2005/08/04 03:53:08 dlg Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.126 2005/08/04 13:00:44 jsg Exp $"; #endif #endif /* not lint */ @@ -2148,6 +2148,9 @@ print_sensor(struct sensor *s) case SENSOR_INDICATOR: printf("indicator, %s", s->value ? "On" : "Off"); break; + case SENSOR_INTEGER: + printf("raw, %lld", s->value); + break; default: printf("unknown"); } -- cgit v1.2.3