mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Shorten the message announcing fixed power/sleep buttons.
This commit is contained in:
parent
e964232cd5
commit
a0e5a00957
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120185
@ -1027,7 +1027,6 @@ static void
|
||||
acpi_enable_fixed_events(struct acpi_softc *sc)
|
||||
{
|
||||
static int first_time = 1;
|
||||
#define MSGFORMAT "%s button is handled as a fixed feature programming model.\n"
|
||||
|
||||
ACPI_ASSERTLOCK;
|
||||
|
||||
@ -1039,7 +1038,7 @@ acpi_enable_fixed_events(struct acpi_softc *sc)
|
||||
acpi_eventhandler_power_button_for_sleep,
|
||||
sc);
|
||||
if (first_time)
|
||||
device_printf(sc->acpi_dev, MSGFORMAT, "power");
|
||||
device_printf(sc->acpi_dev, "Power Button (fixed)");
|
||||
}
|
||||
if (AcpiGbl_FADT != NULL && AcpiGbl_FADT->SleepButton == 0) {
|
||||
AcpiEnableEvent(ACPI_EVENT_SLEEP_BUTTON, 0);
|
||||
@ -1048,7 +1047,7 @@ acpi_enable_fixed_events(struct acpi_softc *sc)
|
||||
acpi_eventhandler_sleep_button_for_sleep,
|
||||
sc);
|
||||
if (first_time)
|
||||
device_printf(sc->acpi_dev, MSGFORMAT, "sleep");
|
||||
device_printf(sc->acpi_dev, "Sleep Button (fixed)");
|
||||
}
|
||||
|
||||
first_time = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user