diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-11-18 18:12:07 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-11-18 18:12:07 +0000 |
commit | d2ab0884a69fac77b1a551e9e41c7d368e542987 (patch) | |
tree | 682f9f7f9b26eb075230189b07724195bb044a6a /sys/dev/acpica/acpi_acad.c | |
parent | 41a88cc21ed205a347a753833646e12e0e9a03ba (diff) | |
download | FreeBSD-src-d2ab0884a69fac77b1a551e9e41c7d368e542987.zip FreeBSD-src-d2ab0884a69fac77b1a551e9e41c7d368e542987.tar.gz |
Cleanups of verbose printing. All the messages for the debugging is
disabled unless verbose flag is set. Also fix some messages in terms
of English.
The critical messages and error messages in probe/attach routine are
unchanged by this commit.
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r-- | sys/dev/acpica/acpi_acad.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index 5b4f751..107b9a8 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -80,10 +80,8 @@ acpi_acad_get_status(void *context) sc->status = newstatus; /* set system power profile based on AC adapter status */ powerprofile_set_state(sc->status ? POWERPROFILE_PERFORMANCE : POWERPROFILE_ECONOMY); - } - - if (bootverbose) { - device_printf(dev,"%s\n",(sc->status) ? "On Line" : "Off Line"); + ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), + "%s Line\n",(sc->status) ? "On" : "Off"); } } @@ -92,9 +90,8 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context) { device_t dev = context; - if (bootverbose) { - device_printf(dev, "Notify %d\n", notify); - } + ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev), + "Notify %d\n", notify); switch (notify) { case ACPI_DEVICE_CHECK_PNP: |