Blame SOURCES/0006-tc-vlan-fix-help-and-error-message-strings.patch

26f871
From cdb8197d0e7380b3679ded6bab398883aead92dc Mon Sep 17 00:00:00 2001
26f871
Message-Id: <cdb8197d0e7380b3679ded6bab398883aead92dc.1611877215.git.aclaudi@redhat.com>
26f871
In-Reply-To: <cb7ce51cc1abd7b98370b903ec96205ebfe48661.1611877215.git.aclaudi@redhat.com>
26f871
References: <cb7ce51cc1abd7b98370b903ec96205ebfe48661.1611877215.git.aclaudi@redhat.com>
26f871
From: Andrea Claudi <aclaudi@redhat.com>
26f871
Date: Fri, 29 Jan 2021 00:35:03 +0100
26f871
Subject: [PATCH] tc-vlan: fix help and error message strings
26f871
26f871
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1885770
26f871
Upstream Status: unknown commit 7c7a0fe0
26f871
26f871
commit 7c7a0fe0c81cdff258c4314c629d7a52ae331dc4
26f871
Author: Guillaume Nault <gnault@redhat.com>
26f871
Date:   Mon Nov 2 11:59:46 2020 +0100
26f871
26f871
    tc-vlan: fix help and error message strings
26f871
26f871
    * "vlan pop" can be followed by a CONTROL keyword.
26f871
26f871
     * Add missing space in error message.
26f871
26f871
    Signed-off-by: Guillaume Nault <gnault@redhat.com>
26f871
    Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
26f871
---
26f871
 tc/m_vlan.c | 4 ++--
26f871
 1 file changed, 2 insertions(+), 2 deletions(-)
26f871
26f871
diff --git a/tc/m_vlan.c b/tc/m_vlan.c
26f871
index e6b21330..57722b73 100644
26f871
--- a/tc/m_vlan.c
26f871
+++ b/tc/m_vlan.c
26f871
@@ -30,7 +30,7 @@ static const char * const action_names[] = {
26f871
 static void explain(void)
26f871
 {
26f871
 	fprintf(stderr,
26f871
-		"Usage: vlan pop\n"
26f871
+		"Usage: vlan pop [CONTROL]\n"
26f871
 		"       vlan push [ protocol VLANPROTO ] id VLANID [ priority VLANPRIO ] [CONTROL]\n"
26f871
 		"       vlan modify [ protocol VLANPROTO ] id VLANID [ priority VLANPRIO ] [CONTROL]\n"
26f871
 		"       vlan pop_eth [CONTROL]\n"
26f871
@@ -244,7 +244,7 @@ static int print_vlan(struct action_util *au, FILE *f, struct rtattr *arg)
26f871
 	parse_rtattr_nested(tb, TCA_VLAN_MAX, arg);
26f871
 
26f871
 	if (!tb[TCA_VLAN_PARMS]) {
26f871
-		fprintf(stderr, "Missing vlanparameters\n");
26f871
+		fprintf(stderr, "Missing vlan parameters\n");
26f871
 		return -1;
26f871
 	}
26f871
 	parm = RTA_DATA(tb[TCA_VLAN_PARMS]);
26f871
-- 
26f871
2.29.2
26f871