diff --git a/sys/dev/acpi_support/acpi_asus.c b/sys/dev/acpi_support/acpi_asus.c index 1e56980a6ecd..ae50f43a6d05 100644 --- a/sys/dev/acpi_support/acpi_asus.c +++ b/sys/dev/acpi_support/acpi_asus.c @@ -437,6 +437,10 @@ acpi_asus_led(struct acpi_asus_led *led, int state) case ACPI_ASUS_LED_WLED: method = sc->model->wled_set; break; + default: + printf("acpi_asus_led: invalid LED type %d\n", + (int)led->type); + return; } acpi_SetInteger(sc->handle, method, state); diff --git a/sys/i386/acpica/acpi_asus.c b/sys/i386/acpica/acpi_asus.c index 1e56980a6ecd..ae50f43a6d05 100644 --- a/sys/i386/acpica/acpi_asus.c +++ b/sys/i386/acpica/acpi_asus.c @@ -437,6 +437,10 @@ acpi_asus_led(struct acpi_asus_led *led, int state) case ACPI_ASUS_LED_WLED: method = sc->model->wled_set; break; + default: + printf("acpi_asus_led: invalid LED type %d\n", + (int)led->type); + return; } acpi_SetInteger(sc->handle, method, state);