[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200618151702.24c33261@hermes.lan>
Date: Thu, 18 Jun 2020 15:17:02 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Anton Danilov <littlesmilingcloud@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v2] tc: qdisc: filter qdisc's by parent/handle
specification
On Tue, 16 Jun 2020 09:39:02 +0300
Anton Danilov <littlesmilingcloud@...il.com> wrote:
> + fprintf(stderr,
> + "only one of parent/handle/root/ingress can be specified\n");
> + arg_error = true;
> + break;
The concept is good, but it could be simplified.
You are repeating same error message several places and it is not
necessary to continue parsing after one bad argument.
See what invarg() does.
Powered by blists - more mailing lists