Merge pull request #39 from ifupdown-ng/bugfix/skipping-interface-message-verbose

lifecycle: only print skipping interface message if verbose
This commit is contained in:
Ariadne Conill 2020-08-24 11:34:38 -06:00 committed by GitHub
commit 24d092ee46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}