Module Name: src
Committed By: riastradh
Date: Thu Aug 20 21:31:47 UTC 2020
Modified Files:
src/sys/net: if_wg.c
Log Message:
Fix in-kernel debug build.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 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.6 src/sys/net/if_wg.c:1.7
--- src/sys/net/if_wg.c:1.6 Thu Aug 20 21:31:36 2020
+++ src/sys/net/if_wg.c Thu Aug 20 21:31:47 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.6 2020/08/20 21:31:36 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.7 2020/08/20 21:31:47 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <[email protected]>
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.6 2020/08/20 21:31:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.7 2020/08/20 21:31:47 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -209,6 +209,8 @@ static bool wg_force_underload = false;
#endif
#ifdef WG_DEBUG_DUMP
+
+#ifdef WG_RUMPKERNEL
static void
wg_dump_buf(const char *func, const char *buf, const size_t size)
{
@@ -218,6 +220,7 @@ wg_dump_buf(const char *func, const char
log(LOG_DEBUG, "%02x ", (int)(0xff & buf[i]));
log(LOG_DEBUG, "\n");
}
+#endif
static void
wg_dump_hash(const uint8_t *func, const uint8_t *name, const uint8_t *hash,