diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-10-12 16:35:37 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-10-12 16:35:37 +0000 |
commit | 84b2bb378b9c8e0649964009bdb9a632e10e53a7 (patch) | |
tree | d3c1f32bda2b5f5a078dd3e444ac1736a3922df3 /sys/dev/acpi/acpithinkpad.c | |
parent | 59f16f6301fb27c4030c48185da91137c06d7d6d (diff) |
Print version number.
ok patrick@
Diffstat (limited to 'sys/dev/acpi/acpithinkpad.c')
-rw-r--r-- | sys/dev/acpi/acpithinkpad.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpithinkpad.c b/sys/dev/acpi/acpithinkpad.c index 6852ef32d2a..31c29a3bcae 100644 --- a/sys/dev/acpi/acpithinkpad.c +++ b/sys/dev/acpi/acpithinkpad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpithinkpad.c,v 1.64 2019/03/08 16:33:23 jcs Exp $ */ +/* $OpenBSD: acpithinkpad.c,v 1.65 2019/10/12 16:35:36 kettenis Exp $ */ /* * Copyright (c) 2008 joshua stein <jcs@openbsd.org> * @@ -289,12 +289,13 @@ thinkpad_attach(struct device *parent, struct device *self, void *aux) sc->sc_acpi = (struct acpi_softc *)parent; sc->sc_devnode = aa->aaa_node; - printf("\n"); - if (aml_evalinteger(sc->sc_acpi, sc->sc_devnode, "MHKV", 0, NULL, &sc->sc_hkey_version)) sc->sc_hkey_version = THINKPAD_HKEY_VERSION1; + printf(": version %lld.%lld\n", sc->sc_hkey_version >> 8, + sc->sc_hkey_version & 0xff); + #if NAUDIO > 0 && NWSKBD > 0 /* Defer speaker mute */ if (thinkpad_get_volume_mute(sc) == 1) |