summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-14 14:01:23 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-10-14 14:01:23 +0000
commitcdd0cebb9436c375dc6379b03485c8ba3cc6f74a (patch)
tree0e0834afaaf8fc629e33fd33ce5c23f66705eb2e /sys
parent09034608e9be736646305d23f6bee02bd87ca117 (diff)
print the name of the chip on attach; ok deraadt
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/i2c/thmc50.c4
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));