freebsd_network: Disable IFMEDIA_DEBUG.

It is not really that useful to print most of this information
by default and it just fills up syslogs unnecessarily.
This commit is contained in:
Augustin Cavalier
2022-06-07 23:46:25 -04:00
parent db1800ca17
commit 68f0117d83
@@ -64,9 +64,11 @@
* Useful for debugging newly-ported drivers. * Useful for debugging newly-ported drivers.
*/ */
#define IFMEDIA_DEBUG //#define IFMEDIA_DEBUG
#ifdef IFMEDIA_DEBUG #ifdef IFMEDIA_DEBUG
# define TRACE(x...) dprintf(x) # define TRACE(x...) dprintf(x)
static void ifmedia_printword(int);
#else #else
# define TRACE(x...) ; # define TRACE(x...) ;
#endif #endif
@@ -74,8 +76,6 @@
static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm, static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm,
int flags, int mask); int flags, int mask);
static void ifmedia_printword(int);
/* /*
* Initialize if_media struct for a specific interface instance. * Initialize if_media struct for a specific interface instance.
*/ */