diff options
author | 2016-09-28 09:13:30 +0000 | |
---|---|---|
committer | 2016-09-28 09:13:30 +0000 | |
commit | 11402948be47def2461c0e7d1606ad598ef56830 (patch) | |
tree | 902b4156c29d1a6519dc6e478b7ec6c5e40268a9 | |
parent | If stdout is not line buffered, messages got lost when assert() was (diff) | |
download | wireguard-openbsd-11402948be47def2461c0e7d1606ad598ef56830.tar.xz wireguard-openbsd-11402948be47def2461c0e7d1606ad598ef56830.zip |
Adjust the mac_port format string since it got upgraded to 32bits
(following OpenFlow 1.3).
-rw-r--r-- | usr.sbin/switchctl/switchctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchctl/switchctl.c b/usr.sbin/switchctl/switchctl.c index 658b11152dd..6ecc015e8e7 100644 --- a/usr.sbin/switchctl/switchctl.c +++ b/usr.sbin/switchctl/switchctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchctl.c,v 1.2 2016/07/20 21:04:44 reyk Exp $ */ +/* $OpenBSD: switchctl.c,v 1.3 2016/09/28 09:13:30 reyk Exp $ */ /* * Copyright (c) 2007-2015 Reyk Floeter <reyk@openbsd.org> @@ -309,7 +309,7 @@ show_summary_msg(struct imsg *imsg, int type) break; getmonotime(&tv); - printf("%-4u\t%-4ld\t%-8s\t%-24s\tage %llds\n", + printf("%-4u\t%-4u\t%-8s\t%-24s\tage %llds\n", sw_id, mac->mac_port, "mac", print_ether(mac->mac_addr), (long long)tv.tv_sec - mac->mac_age); |