diff options
author | 2005-10-23 16:43:42 +0000 | |
---|---|---|
committer | 2005-10-23 16:43:42 +0000 | |
commit | daea6e9e45577d3c3042cd27ad755211e4bcd21f (patch) | |
tree | 89b08be55302c9c4a0c9069a33f7b5fab838848f | |
parent | Rework of multicast deletion code for vlan(4) and trunk(4). (diff) | |
download | wireguard-openbsd-daea6e9e45577d3c3042cd27ad755211e4bcd21f.tar.xz wireguard-openbsd-daea6e9e45577d3c3042cd27ad755211e4bcd21f.zip |
up to 18 lines of unconfigured gpio pins is just noise, hide behind ifdef.
-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 |