Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg if_lagg: fix format string incompatibility
details: https://anonhg.NetBSD.org/src/rev/201c262f0f58
branches: trunk
changeset: 379211:201c262f0f58
user: rillig <rillig%NetBSD.org@localhost>
date: Wed May 19 10:20:50 2021 +0000
description:
if_lagg: fix format string incompatibility
In struct ifnet, the member if_mtu has type uint64_t, which differs from
struct ifreq, where the member ifru_mtu has type int.
diffstat:
sys/net/lagg/if_lagg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r 4c00040ded68 -r 201c262f0f58 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c Wed May 19 08:19:20 2021 +0000
+++ b/sys/net/lagg/if_lagg.c Wed May 19 10:20:50 2021 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: if_lagg.c,v 1.1 2021/05/17 04:07:43 yamaguchi Exp $ */
+/* $NetBSD: if_lagg.c,v 1.2 2021/05/19 10:20:50 rillig Exp $ */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.1 2021/05/17 04:07:43 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.2 2021/05/19 10:20:50 rillig Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -689,7 +689,8 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd
if (error != 0) {
lagg_log(sc, LOG_ERR,
"failed to change MTU to %d on port %s, "
- "reverting all ports to original MTU(%d)\n",
+ "reverting all ports to original "
+ "MTU(%" PRIu64 ")\n",
ifr->ifr_mtu, lp->lp_ifp->if_xname,
ifp->if_mtu);
break;
Home |
Main Index |
Thread Index |
Old Index