diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-08-04 13:01:44 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-08-04 13:01:44 +0000 |
commit | 3c34c4300e45ee1e9eab78a40da1a7dfb6cadc74 (patch) | |
tree | 36ea73523ab25c9b9bfe1652bb61eaebed91ca9f /sbin/sysctl | |
parent | fe7d5fe430c9724586d3cd5bd0f15fada5c1a089 (diff) |
Support for SENSOR_INTEGER.
ok grange@, dlg@, henning@
Diffstat (limited to 'sbin/sysctl')
-rw-r--r-- | sbin/sysctl/sysctl.c | 7 |
1 files changed, 5 insertions, 2 deletions
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"); } |