From ceb82f4fd209a14d6a442a485e6bd390db8f3312 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 9 Sep 2020 19:38:29 -0600 Subject: [PATCH] ifupdown: only display skip messages in verbose mode --- cmd/ifupdown.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/ifupdown.c b/cmd/ifupdown.c index 0b09d67..ad20df4 100644 --- a/cmd/ifupdown.c +++ b/cmd/ifupdown.c @@ -101,15 +101,17 @@ skip_interface(struct lif_interface *iface, const char *ifname) if (up && iface->refcount > 0) { - fprintf(stderr, "%s: skipping %s (already configured), use --force to force configuration\n", - argv0, ifname); + if (exec_opts.verbose) + fprintf(stderr, "%s: skipping auto interface %s (already configured), use --force to force configuration\n", + argv0, ifname); return true; } if (!up && iface->refcount == 0) { - fprintf(stderr, "%s: skipping %s (already deconfigured), use --force to force deconfiguration\n", - argv0, ifname); + if (exec_opts.verbose) + fprintf(stderr, "%s: skipping auto interface %s (already deconfigured), use --force to force deconfiguration\n", + argv0, ifname); return true; }