X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fnet.h;h=a092f291bbcd643b8eda122b10b0509d1fd4b719;hb=e034ea3b77baf90ab8dde2c1beeb22704b01fb2d;hp=a902a64752ae56635d2174e86470cefbf1ec8b4f;hpb=d22c338e07cc98276ea5cc4feaa5a370baa63243;p=u-boot diff --git a/include/net.h b/include/net.h index a902a64752..a092f291bb 100644 --- a/include/net.h +++ b/include/net.h @@ -19,6 +19,10 @@ #include #include /* 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; }