mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Make the value of the HATM_DEBUG symbol the default for the debugging
flags. Introduce a new debugging flag to dump received packets.
This commit is contained in:
parent
ac45adc11a
commit
92d5836987
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121681
@ -1797,7 +1797,7 @@ hatm_attach(device_t dev)
|
||||
hatm_sysctl_lbmem, "S", "local memory") == NULL)
|
||||
goto failed;
|
||||
|
||||
kenv_getuint(sc, "debug", &sc->debug, 0, 1);
|
||||
kenv_getuint(sc, "debug", &sc->debug, HATM_DEBUG, 1);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -160,8 +160,8 @@ hatm_rx(struct hatm_softc *sc, u_int cid, u_int flags, struct mbuf *m0,
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
#ifdef HATM_DEBUG
|
||||
if (sc->debug & DBG_DUMP) {
|
||||
struct mbuf *tmp;
|
||||
|
||||
for (tmp = vcc->chain; tmp != NULL; tmp = tmp->m_next) {
|
||||
|
@ -588,16 +588,18 @@ struct hatm_softc {
|
||||
} while (0)
|
||||
|
||||
enum {
|
||||
DBG_RX = 0x0001,
|
||||
DBG_TX = 0x0002,
|
||||
DBG_VCC = 0x0004,
|
||||
DBG_IOCTL = 0x0008,
|
||||
DBG_ATTACH = 0x0010,
|
||||
DBG_INTR = 0x0020,
|
||||
DBG_DMA = 0x0040,
|
||||
DBG_DMAH = 0x0080,
|
||||
DBG_DUMMY = 0x0001, /* default value for -DHATM_DEBUG */
|
||||
DBG_RX = 0x0002,
|
||||
DBG_TX = 0x0004,
|
||||
DBG_VCC = 0x0008,
|
||||
DBG_IOCTL = 0x0010,
|
||||
DBG_ATTACH = 0x0020,
|
||||
DBG_INTR = 0x0040,
|
||||
DBG_DMA = 0x0080,
|
||||
DBG_DMAH = 0x0100,
|
||||
DBG_DUMP = 0x0200,
|
||||
|
||||
DBG_ALL = 0x00ff
|
||||
DBG_ALL = 0x03ff
|
||||
};
|
||||
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user