From: claudio Date: Fri, 7 Oct 2022 09:20:30 +0000 (+0000) Subject: Kill extra space in ext community ovs output. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=21a4cd7f211a6e7bd6be1d689aeb247620f38d66;p=openbsd Kill extra space in ext community ovs output. Noticed by job@, OK tb@ --- diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index 04cae4fa205..e41f6c97bd7 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.283 2022/08/31 15:00:53 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.284 2022/10/07 09:20:30 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -989,19 +989,19 @@ fmt_ext_community(uint8_t *data) ext = be64toh(ext) & 0xffffffffffffLL; switch (ext) { case EXT_COMMUNITY_OVS_VALID: - snprintf(buf, sizeof(buf), "%s valid ", + snprintf(buf, sizeof(buf), "%s valid", log_ext_subtype(type, subtype)); return buf; case EXT_COMMUNITY_OVS_NOTFOUND: - snprintf(buf, sizeof(buf), "%s not-found ", + snprintf(buf, sizeof(buf), "%s not-found", log_ext_subtype(type, subtype)); return buf; case EXT_COMMUNITY_OVS_INVALID: - snprintf(buf, sizeof(buf), "%s invalid ", + snprintf(buf, sizeof(buf), "%s invalid", log_ext_subtype(type, subtype)); return buf; default: - snprintf(buf, sizeof(buf), "%s 0x%llx ", + snprintf(buf, sizeof(buf), "%s 0x%llx", log_ext_subtype(type, subtype), (unsigned long long)ext); return buf;