Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix in-kernel debug build.
details: https://anonhg.NetBSD.org/src/rev/254d067024d4
branches: trunk
changeset: 937508:254d067024d4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Aug 20 21:31:47 2020 +0000
description:
Fix in-kernel debug build.
diffstat:
sys/net/if_wg.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r e1b723fe095a -r 254d067024d4 sys/net/if_wg.c
--- a/sys/net/if_wg.c Thu Aug 20 21:31:36 2020 +0000
+++ b/sys/net/if_wg.c Thu Aug 20 21:31:47 2020 +0000
@@ -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 <ozaki.ryota%gmail.com@localhost>
@@ -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 @@
#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 @@
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,
Home |
Main Index |
Thread Index |
Old Index