diff options
author | 2007-10-14 14:01:22 +0000 | |
---|---|---|
committer | 2007-10-14 14:01:22 +0000 | |
commit | 3a6b347a1ff79cb014f5ad4e633239e55e03e36f (patch) | |
tree | 1d13542dc86ed86afe2e3163b6e7dda6b6b50057 | |
parent | One more cpu_switchto() leftover. (diff) | |
download | wireguard-openbsd-3a6b347a1ff79cb014f5ad4e633239e55e03e36f.tar.xz wireguard-openbsd-3a6b347a1ff79cb014f5ad4e633239e55e03e36f.zip |
print the name of the chip on attach; ok deraadt
-rw-r--r-- | sys/dev/i2c/thmc50.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/i2c/thmc50.c b/sys/dev/i2c/thmc50.c index ca310d68c4b..00702628564 100644 --- a/sys/dev/i2c/thmc50.c +++ b/sys/dev/i2c/thmc50.c @@ -1,4 +1,4 @@ -/* $OpenBSD: thmc50.c,v 1.2 2007/09/18 09:55:31 kettenis Exp $ */ +/* $OpenBSD: thmc50.c,v 1.3 2007/10/14 14:01:22 cnst Exp $ */ /* * Copyright (c) 2007 Theo de Raadt @@ -78,6 +78,8 @@ thmc_attach(struct device *parent, struct device *self, void *aux) sc->sc_tag = ia->ia_tag; sc->sc_addr = ia->ia_addr; + printf(": %s", ia->ia_name); + /* Initialize sensor data. */ strlcpy(sc->sc_sensordev.xname, sc->sc_dev.dv_xname, sizeof(sc->sc_sensordev.xname)); |