Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Fix button type print; "type" is one of PSWITCH...



details:   https://anonhg.NetBSD.org/src/rev/47c5fa1bc511
branches:  trunk
changeset: 836316:47c5fa1bc511
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Oct 11 22:58:36 2018 +0000

description:
Fix button type print; "type" is one of PSWITCH_TYPE_*, not ACPI_EVENT_*_BUTTON.

diffstat:

 sys/dev/acpi/acpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 78fc27d93aa1 -r 47c5fa1bc511 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Thu Oct 11 18:04:06 2018 +0000
+++ b/sys/dev/acpi/acpi.c       Thu Oct 11 22:58:36 2018 +0000
@@ -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 @@
        }
 
        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;
 



Home | Main Index | Thread Index | Old Index