Module Name: src Committed By: riastradh Date: Mon Aug 31 20:34:18 UTC 2020
Modified Files: src/sys/net: if_wg.c Log Message: wg: Make it build with WG_DEBUG on 32-bit platforms. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 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.49 src/sys/net/if_wg.c:1.50 --- src/sys/net/if_wg.c:1.49 Mon Aug 31 20:33:58 2020 +++ src/sys/net/if_wg.c Mon Aug 31 20:34:18 2020 @@ -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.ry...@gmail.com> @@ -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 @@ wg_handle_msg_data(struct wg_softc *wg, * 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");