diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 08:01:04 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:53:08 -0500 |
commit | 4ef8d53caadbab5585ccb4df2d087183b1383b86 (patch) | |
tree | 5e4aeca8a2c86a983f08d573405594c68691db7e /include/net.h | |
parent | c697576262be11ddab48e1890428495e2fef1751 (diff) | |
download | u-boot-imx-4ef8d53caadbab5585ccb4df2d087183b1383b86.zip u-boot-imx-4ef8d53caadbab5585ccb4df2d087183b1383b86.tar.gz u-boot-imx-4ef8d53caadbab5585ccb4df2d087183b1383b86.tar.bz2 |
net: Allow filtering on debug traces in the net subsystem
Add several levels of DEBUG prints so that you can limit the noise to
the severety of your problem.
DEBUG_LL_STATE = Link local state machine changes
DEBUG_DEV_PKT = Packets or info directed to the device
DEBUG_NET_PKT = Packets on info on the network at large
DEBUG_INT_STATE = Internal network state changes
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index a902a64..a092f29 100644 --- a/include/net.h +++ b/include/net.h @@ -19,6 +19,10 @@ #include <asm/cache.h> #include <asm/byteorder.h> /* for nton* / ntoh* stuff */ +#define DEBUG_LL_STATE 0 /* Link local state machine changes */ +#define DEBUG_DEV_PKT 0 /* Packets or info directed to the device */ +#define DEBUG_NET_PKT 0 /* Packets on info on the network at large */ +#define DEBUG_INT_STATE 0 /* Internal network state changes */ /* * The number of receive packet buffers, and the required packet buffer @@ -480,6 +484,7 @@ static inline void net_set_state(enum net_loop_state state) { extern enum net_loop_state net_state; + debug_cond(DEBUG_INT_STATE, "--- NetState set to %d\n", state); net_state = state; } |