commit-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-10-gc1affe


From: Mats Erik Andersson
Subject: [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_4-10-gc1affe1
Date: Sat, 01 Aug 2015 23:10:15 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  c1affe14d5e373b630358487fe1f89270cf73285 (commit)
      from  d4114d50afdf7d08416c194ff71dff4abb046979 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=c1affe14d5e373b630358487fe1f89270cf73285


commit c1affe14d5e373b630358487fe1f89270cf73285
Author: Mats Erik Andersson <address@hidden>
Date:   Sun Aug 2 00:57:04 2015 +0200

    ifconfig: Verbose report on changed flags.

diff --git a/ChangeLog b/ChangeLog
index 3e16d80..3fea818 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-08-02  Mats Erik Andersson  <address@hidden>
+
+       ifconfig: Verbose report on changed flags.
+
+       * ifconfig/changeif.c (set_flags): In verbose report mode,
+       compose a message to name those flags that were set, and
+       also those that were cleared.
+
 2015-08-01  Mats Erik Andersson  <address@hidden>
 
        ifconfig: Apply flags correctly.
diff --git a/ifconfig/changeif.c b/ifconfig/changeif.c
index a040587..beac6f6 100644
--- a/ifconfig/changeif.c
+++ b/ifconfig/changeif.c
@@ -367,6 +367,30 @@ set_flags (int sfd, struct ifreq *ifr, int setflags, int 
clrflags)
       error (0, errno, "SIOCSIFFLAGS failed");
       return -1;
     }
+
+  if (verbose)
+    {
+      printf ("Setting %sflags", setflags ? "" : "no ");
+
+      if (setflags)
+       {
+         printf (" `");
+         print_if_flags (setflags, NULL, ',');
+         putchar ('\'');
+       }
+
+      printf (" of `%s'", ifr->ifr_name);
+
+      if (clrflags)
+       {
+         printf (", clearing `");
+         print_if_flags (clrflags, NULL, ',');
+         putchar ('\'');
+       }
+
+      printf (".\n");
+    }
+
   return 0;
 #endif
 }

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    8 ++++++++
 ifconfig/changeif.c |   24 ++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]