diff options
Diffstat (limited to 'usr.sbin/apmd/apmsubr.c')
-rw-r--r-- | usr.sbin/apmd/apmsubr.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmsubr.c b/usr.sbin/apmd/apmsubr.c index 95943e5c1db..7cc8305c8cc 100644 --- a/usr.sbin/apmd/apmsubr.c +++ b/usr.sbin/apmd/apmsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmsubr.c,v 1.3 2001/07/07 01:10:42 mickey Exp $ */ +/* $OpenBSD: apmsubr.c,v 1.4 2005/11/23 08:02:58 sturm Exp $ */ /* * Copyright (c) 1995,1996 John T. Kohl @@ -70,3 +70,18 @@ ac_state(int state) return "invalid AC status"; } } + +const char * +perf_state(int state) +{ + switch (state) { + case PERF_NONE: + return "uninitialized"; + case PERF_MANUAL: + return "manual"; + case PERF_AUTO: + return "auto"; + default: + return "invalid performance status"; + } +} |