From: kettenis Date: Wed, 4 Aug 2010 17:35:39 +0000 (+0000) Subject: Print supported sleep states. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=041964d0fd6496e054cbb996ed1a37d4f0b017e8;p=openbsd Print supported sleep states. ok marco@, phessler@, deraadt@ --- diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 777840231ce..2b44890ff67 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.198 2010/08/03 16:32:40 mlarkin Exp $ */ +/* $OpenBSD: acpi.c,v 1.199 2010/08/04 17:35:39 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -1594,6 +1594,7 @@ acpi_init_states(struct acpi_softc *sc) char name[8]; int i; + printf("\n%s: sleep states", DEVNAME(sc)); for (i = ACPI_STATE_S0; i <= ACPI_STATE_S5; i++) { snprintf(name, sizeof(name), "_S%d_", i); sc->sc_sleeptype[i].slp_typa = -1; @@ -1602,6 +1603,7 @@ acpi_init_states(struct acpi_softc *sc) if (res.type == AML_OBJTYPE_PACKAGE) { sc->sc_sleeptype[i].slp_typa = aml_val2int(res.v_package[0]); sc->sc_sleeptype[i].slp_typb = aml_val2int(res.v_package[1]); + printf(" S%d", i); } aml_freevalue(&res); }