From 6414eef1077b0d1ef2d01542360391b8871e5d2f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 11 Nov 2022 15:47:41 -0500 Subject: [PATCH] usb_ecm: Disable tracing by default. (cherry picked from commit f156c66999ddfe7d5529ee931c311faa4e2fc6f6) Change-Id: I7f554ec14ebae0d76a0fce693b5eb66871ddd312 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5784 Reviewed-by: waddlesplash --- src/add-ons/kernel/drivers/network/ether/usb_ecm/Driver.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/drivers/network/ether/usb_ecm/Driver.h b/src/add-ons/kernel/drivers/network/ether/usb_ecm/Driver.h index c83e66fd19..c5d039dd7f 100644 --- a/src/add-ons/kernel/drivers/network/ether/usb_ecm/Driver.h +++ b/src/add-ons/kernel/drivers/network/ether/usb_ecm/Driver.h @@ -74,10 +74,14 @@ typedef struct { } usb_ecm_driver_info; - +#ifdef TRACE_ECM #define TRACE(x...) dprintf(DRIVER_NAME ": " x) -#define TRACE_ALWAYS(x...) dprintf(DRIVER_NAME ": " x) #define CALLED() TRACE("CALLED %s\n", __PRETTY_FUNCTION__) +#else +#define TRACE(x...) +#define CALLED() +#endif +#define TRACE_ALWAYS(x...) dprintf(DRIVER_NAME ": " x) #endif //_USB_ECM_DRIVER_H_