diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-23 16:43:43 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2005-10-23 16:43:43 +0000 |
commit | 912b5f7478656a6d92369189893d413dcfd55ba0 (patch) | |
tree | ef3751c836549a39dab29e4554b3422d50789ef8 /sys/arch/macppc | |
parent | 8cfa69fc18d7646a6ddce7e62fded41441aab367 (diff) |
up to 18 lines of unconfigured gpio pins is just noise, hide behind ifdef.
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/dev/macgpio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/macppc/dev/macgpio.c b/sys/arch/macppc/dev/macgpio.c index cabdb7beca2..23f370fe6f2 100644 --- a/sys/arch/macppc/dev/macgpio.c +++ b/sys/arch/macppc/dev/macgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macgpio.c,v 1.1 2005/05/04 02:24:17 drahn Exp $ */ +/* $OpenBSD: macgpio.c,v 1.2 2005/10/23 16:43:42 drahn Exp $ */ /* $NetBSD: gpio.c,v 1.2 2001/02/27 05:16:33 matt Exp $ */ /*- @@ -129,8 +129,8 @@ macgpio_attach(struct device *parent, struct device *self, void *aux) int macgpio_print(void *aux, const char *gpio) { +#ifdef MACGPIOVERBOSE struct confargs *ca = aux; - if (gpio) printf("%s at %s", ca->ca_name, gpio); @@ -138,6 +138,9 @@ macgpio_print(void *aux, const char *gpio) printf(" offset 0x%x", ca->ca_reg[0]); return UNCONF; +#else + return QUIET; +#endif } int |