Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net wg: Make it build with WG_DEBUG on 32-bit platforms.
details: https://anonhg.NetBSD.org/src/rev/a5c7767649bb
branches: trunk
changeset: 943360:a5c7767649bb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 31 20:34:18 2020 +0000
description:
wg: Make it build with WG_DEBUG on 32-bit platforms.
diffstat:
sys/net/if_wg.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r c5a7b65f77a5 -r a5c7767649bb sys/net/if_wg.c
--- a/sys/net/if_wg.c Mon Aug 31 20:33:58 2020 +0000
+++ b/sys/net/if_wg.c Mon Aug 31 20:34:18 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wg.c,v 1.49 2020/08/31 20:33:58 riastradh Exp $ */
+/* $NetBSD: if_wg.c,v 1.50 2020/08/31 20:34:18 riastradh Exp $ */
/*
* Copyright (C) Ryota Ozaki <ozaki.ryota%gmail.com@localhost>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.49 2020/08/31 20:33:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.50 2020/08/31 20:34:18 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2568,8 +2568,9 @@
* itself to send back for KEEPALIVE-TIMEOUT seconds, it sends
* a keepalive message."
*/
- WG_DLOG("time_uptime=%lu wgs_time_last_data_sent=%lu\n",
- time_uptime, wgs->wgs_time_last_data_sent);
+ WG_DLOG("time_uptime=%ju wgs_time_last_data_sent=%ju\n",
+ (uintmax_t)time_uptime,
+ (uintmax_t)wgs->wgs_time_last_data_sent);
if ((time_uptime - wgs->wgs_time_last_data_sent) >=
wg_keepalive_timeout) {
WG_TRACE("Schedule sending keepalive message");
Home |
Main Index |
Thread Index |
Old Index