Module Name:    src
Committed By:   kre
Date:           Wed Jul 24 22:17:21 UTC 2024

Modified Files:
        src/sys/net: if_wg.c

Log Message:
If any of the WG_DEBUG_XXX symbols happens to be defined (say, from a
stray rump Makefile...) then we now must have WG_DEBUG also defined, so
if it wasn't, make it so.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/sys/net/if_wg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_wg.c
diff -u src/sys/net/if_wg.c:1.81 src/sys/net/if_wg.c:1.82
--- src/sys/net/if_wg.c:1.81	Wed Jul 24 20:54:43 2024
+++ src/sys/net/if_wg.c	Wed Jul 24 22:17:21 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_wg.c,v 1.81 2024/07/24 20:54:43 christos Exp $	*/
+/*	$NetBSD: if_wg.c,v 1.82 2024/07/24 22:17:21 kre Exp $	*/
 
 /*
  * Copyright (C) Ryota Ozaki <ozaki.ry...@gmail.com>
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.81 2024/07/24 20:54:43 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.82 2024/07/24 22:17:21 kre Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_altq_enabled.h"
@@ -169,6 +169,13 @@ __KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.
 
 // #define WG_DEBUG
 
+#ifndef WG_DEBUG
+# if defined(WG_DEBUG_LOG) || defined(WG_DEBUG_TRACE) ||		    \
+	defined(WG_DEBUG_DUMP) || defined(WG_DEBUG_PARAMS)
+#   define WG_DEBUG
+# endif
+#endif
+
 /* Debug options */
 #ifdef WG_DEBUG
 /* Output debug logs */

Reply via email to