summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-26 03:52:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-26 03:52:08 +0000
commit7a5acbb0d76e3d227cb53b7466cc47f179990f50 (patch)
tree874cdd9504ac26bc4fb724025c2523d9a702abe1
parentb678d89bef2d9d051bf25095d6e0b0bb44f09677 (diff)
if probe falls, iic_print should print the name we attempted to match under
-rw-r--r--sys/dev/i2c/i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2c.c b/sys/dev/i2c/i2c.c
index 151013ffaf7..732929f8aa4 100644
--- a/sys/dev/i2c/i2c.c
+++ b/sys/dev/i2c/i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2c.c,v 1.6 2005/12/23 01:26:22 deraadt Exp $ */
+/* $OpenBSD: i2c.c,v 1.7 2005/12/26 03:52:07 deraadt Exp $ */
/* $NetBSD: i2c.c,v 1.1 2003/09/30 00:35:31 thorpej Exp $ */
/*
@@ -83,6 +83,8 @@ iic_print(void *aux, const char *pnp)
{
struct i2c_attach_args *ia = aux;
+ if (pnp != NULL)
+ printf("%s at %s", ia->ia_name, pnp);
printf(" addr 0x%x", ia->ia_addr);
return (UNCONF);