diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-01-05 23:00:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-01-05 23:00:41 +0000 |
commit | b82489be1b6fd2870f7cc6bc27ba551a11104120 (patch) | |
tree | 83a3a49d8032fc2ba81692124d4896ad4b3faa19 /sys/dev/i2c/i2c_scan.c | |
parent | 4462cf04475be7561faae0c4f4342d74e5322a7b (diff) |
if both debug and verbose defined, only spit out the dump once
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 370f2d95cf9..d5c92f8ee89 100644 --- a/sys/dev/i2c/i2c_scan.c +++ b/sys/dev/i2c/i2c_scan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i2c_scan.c,v 1.50 2006/01/04 18:36:22 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.51 2006/01/05 23:00:40 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -515,9 +515,9 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) return; } -#ifdef I2C_VERBOSE +#if defined(I2C_VERBOSE) && !defined(I2C_DEBUG) iic_dump(self, addr, name); -#endif /* I2C_DEBUG */ +#endif /* defined(I2C_VERBOSE) && !defined(I2C_DEBUG) */ } |