diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index c2c858c8885a..9579716a9cde 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_bge.c,v 1.164 2009/04/23 10:47:44 msaitoh Exp $ */ +/* $NetBSD: if_bge.c,v 1.165 2009/05/05 18:08:28 msaitoh Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -79,7 +79,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.164 2009/04/23 10:47:44 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.165 2009/05/05 18:08:28 msaitoh Exp $"); #include "bpfilter.h" #include "vlan.h" @@ -4192,8 +4192,14 @@ bge_stop_block(struct bge_softc *sc, bus_addr_t reg, uint32_t bit) DELAY(1000); } - aprint_error_dev(sc->bge_dev, - "block failed to stop: reg 0x%lx, bit 0x%08x\n", (u_long)reg, bit); + /* + * Doesn't print only when the register is BGE_SRS_MODE. It occurs + * on some environment (and once after boot?) + */ + if (reg != BGE_SRS_MODE) + aprint_error_dev(sc->bge_dev, + "block failed to stop: reg 0x%lx, bit 0x%08x\n", + (u_long)reg, bit); } /*