Doesn't print error message only when the register is BGE_SRS_MODE.

It occurs on some environment (and once after boot?). Other *BSDs and
Linux don't print the error message for all registers.
This commit is contained in:
msaitoh 2009-05-05 18:08:28 +00:00
parent a6747c30ce
commit b25f90b108

View File

@ -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 <sys/cdefs.h>
__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);
}
/*