From f4ee56456fec1c5aeb68429b91102213a14f3049 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Sun, 18 Nov 2001 18:48:31 +0000 Subject: Yet another verbose printing cleanup. Remove debug_wakeup flag and check common verbose flag instead. --- sys/amd64/acpica/acpi_wakeup.c | 7 ++----- sys/i386/acpica/acpi_wakeup.c | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c index 3c9e0cd..d775236 100644 --- a/sys/amd64/acpica/acpi_wakeup.c +++ b/sys/amd64/acpica/acpi_wakeup.c @@ -70,9 +70,6 @@ static u_int32_t r_eax, r_ebx, r_ecx, r_edx, r_ebp, r_esi, r_edi, static u_int16_t r_cs, r_ds, r_es, r_fs, r_gs, r_ss, r_tr; static u_int32_t r_esp = 0; -static int debug_wakeup = 1; -SYSCTL_INT(_debug, OID_AUTO, acpi_wakeup, CTLFLAG_RW, &debug_wakeup, 0, "") - static void acpi_printcpu(void); static void acpi_realmodeinst(void *arg, bus_dma_segment_t *segs, int nsegs, int error); @@ -240,7 +237,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) WAKECODE_FIXUP(previous_gs, u_int16_t, r_gs); WAKECODE_FIXUP(previous_ss, u_int16_t, r_ss); - if (debug_wakeup) { + if (acpi_get_verbose(sc)) { acpi_printcpu(); } @@ -267,7 +264,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) #endif icu_reinit(); - if (debug_wakeup) { + if (acpi_get_verbose(sc)) { acpi_savecpu(); acpi_printcpu(); } diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 3c9e0cd..d775236 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -70,9 +70,6 @@ static u_int32_t r_eax, r_ebx, r_ecx, r_edx, r_ebp, r_esi, r_edi, static u_int16_t r_cs, r_ds, r_es, r_fs, r_gs, r_ss, r_tr; static u_int32_t r_esp = 0; -static int debug_wakeup = 1; -SYSCTL_INT(_debug, OID_AUTO, acpi_wakeup, CTLFLAG_RW, &debug_wakeup, 0, "") - static void acpi_printcpu(void); static void acpi_realmodeinst(void *arg, bus_dma_segment_t *segs, int nsegs, int error); @@ -240,7 +237,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) WAKECODE_FIXUP(previous_gs, u_int16_t, r_gs); WAKECODE_FIXUP(previous_ss, u_int16_t, r_ss); - if (debug_wakeup) { + if (acpi_get_verbose(sc)) { acpi_printcpu(); } @@ -267,7 +264,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) #endif icu_reinit(); - if (debug_wakeup) { + if (acpi_get_verbose(sc)) { acpi_savecpu(); acpi_printcpu(); } -- cgit v1.1