• Andreas Henriksson's avatar
    ip a flush: unnecessarily chatty when there's nothing to flush · f0b34d2d
    Andreas Henriksson authored
    On tis, 2008-07-22 at 20:21 +0200, martin f krafft wrote:
    > piper:~|master|% sudo ip a flush dev eth0 >/dev/null
    > Nothing to flush.
    >
    > It should just shut up, shouldn't it? :)
    
    The patch below makes the "Nothing to flush" only visible when show
    statistics flag is given, and then only to stdout rather then stderr.
    
    $ sudo ./ip/ip -s addr flush dev skif
    Nothing to flush.
    $ sudo ./ip/ip addr flush dev skif
    $
    
    (See http://bugs.debian.org/492196 )
    f0b34d2d
iproute.c 39.6 KB