From b82489be1b6fd2870f7cc6bc27ba551a11104120 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 5 Jan 2006 23:00:41 +0000 Subject: if both debug and verbose defined, only spit out the dump once --- sys/dev/i2c/i2c_scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/i2c/i2c_scan.c') 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 @@ -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) */ } -- cgit v1.2.3