From 68f0117d83082aad7b1ba540a52ea384f72ec132 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 7 Jun 2022 23:46:25 -0400 Subject: [PATCH] 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. --- src/libs/compat/freebsd_network/fbsd_if_media.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/compat/freebsd_network/fbsd_if_media.c b/src/libs/compat/freebsd_network/fbsd_if_media.c index 24be63b013..2fcf113d95 100644 --- a/src/libs/compat/freebsd_network/fbsd_if_media.c +++ b/src/libs/compat/freebsd_network/fbsd_if_media.c @@ -64,9 +64,11 @@ * Useful for debugging newly-ported drivers. */ -#define IFMEDIA_DEBUG +//#define IFMEDIA_DEBUG #ifdef IFMEDIA_DEBUG # define TRACE(x...) dprintf(x) + +static void ifmedia_printword(int); #else # define TRACE(x...) ; #endif @@ -74,8 +76,6 @@ static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm, int flags, int mask); -static void ifmedia_printword(int); - /* * Initialize if_media struct for a specific interface instance. */