Module Name: src
Committed By: jmcneill
Date: Thu Oct 11 22:58:37 UTC 2018
Modified Files:
src/sys/dev/acpi: acpi.c
Log Message:
Fix button type print; "type" is one of PSWITCH_TYPE_*, not ACPI_EVENT_*_BUTTON.
To generate a diff of this commit:
cvs rdiff -u -r1.271 -r1.272 src/sys/dev/acpi/acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/acpi.c
diff -u src/sys/dev/acpi/acpi.c:1.271 src/sys/dev/acpi/acpi.c:1.272
--- src/sys/dev/acpi/acpi.c:1.271 Fri May 25 15:48:00 2018
+++ src/sys/dev/acpi/acpi.c Thu Oct 11 22:58:36 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.271 2018/05/25 15:48:00 ryoon Exp $ */
+/* $NetBSD: acpi.c,v 1.272 2018/10/11 22:58:36 jmcneill Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.271 2018/05/25 15:48:00 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.272 2018/10/11 22:58:36 jmcneill Exp $");
#include "pci.h"
#include "opt_acpi.h"
@@ -1196,7 +1196,7 @@ acpi_register_fixed_button(struct acpi_s
}
aprint_normal_dev(sc->sc_dev, "fixed %s button present\n",
- (type != ACPI_EVENT_SLEEP_BUTTON) ? "power" : "sleep");
+ (type != PSWITCH_TYPE_SLEEP) ? "power" : "sleep");
return;