Put back and properly mark a variable which is used iff ATW_DEBUG.
This commit is contained in:
parent
1000f7c1af
commit
1b624a35bb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atw.c,v 1.155 2013/10/17 21:24:24 christos Exp $ */
|
||||
/* $NetBSD: atw.c,v 1.156 2013/11/22 00:01:09 riz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
|
||||
@ -34,7 +34,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.155 2013/10/17 21:24:24 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.156 2013/11/22 00:01:09 riz Exp $");
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -167,7 +167,7 @@ static int atw_rf3000_read(struct atw_softc *sc, u_int, u_int *);
|
||||
static void atw_si4126_print(struct atw_softc *);
|
||||
static int atw_si4126_read(struct atw_softc *, u_int, u_int *);
|
||||
# endif /* ATW_SYNDEBUG */
|
||||
|
||||
#define __atwdebugused /* empty */
|
||||
#else
|
||||
#define ATW_DPRINTF(x)
|
||||
#define ATW_DPRINTF2(x)
|
||||
@ -175,6 +175,7 @@ static int atw_si4126_read(struct atw_softc *, u_int, u_int *);
|
||||
#define DPRINTF(sc, x) /* nothing */
|
||||
#define DPRINTF2(sc, x) /* nothing */
|
||||
#define DPRINTF3(sc, x) /* nothing */
|
||||
#define __atwdebugused __unused
|
||||
#endif
|
||||
|
||||
/* ifnet methods */
|
||||
@ -902,6 +903,7 @@ void
|
||||
atw_reset(struct atw_softc *sc)
|
||||
{
|
||||
int i;
|
||||
uint32_t lpc __atwdebugused;
|
||||
|
||||
ATW_WRITE(sc, ATW_NAR, 0x0);
|
||||
DELAY(atw_nar_delay);
|
||||
@ -948,7 +950,7 @@ atw_reset(struct atw_softc *sc)
|
||||
|
||||
DELAY(atw_magic_delay4);
|
||||
|
||||
(void)ATW_READ(sc, ATW_LPC);
|
||||
lpc = ATW_READ(sc, ATW_LPC);
|
||||
|
||||
DPRINTF(sc, ("%s: ATW_LPC %#08x\n", __func__, lpc));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user