From aefaaa7457c869428b8f03894cc0a14b8d6d726e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 24 Aug 2020 11:33:56 -0600 Subject: [PATCH] lifecycle: only print skipping interface message if verbose --- libifupdown/lifecycle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index a70fcc1..2723f40 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -268,8 +268,9 @@ handle_dependents(const struct lif_execute_opts *opts, struct lif_interface *par /* already up or down, skip */ if (up == iface->is_up) { - fprintf(stderr, "ifupdown: skipping dependent interface %s (of %s)\n", - iface->ifname, parent->ifname); + if (opts->verbose) + fprintf(stderr, "ifupdown: skipping dependent interface %s (of %s)\n", + iface->ifname, parent->ifname); continue; }