diff options
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/iplink.c | 10 | ||||
-rw-r--r-- | networking/libiproute/utils.c | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index d9f2837..f79dab4 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c @@ -1,8 +1,8 @@ /* vi: set sw=4 ts=4: */ /* - * iplink.c "ip link". + * iplink.c "ip link". * - * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> + * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> * * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ @@ -31,7 +31,7 @@ static int on_off(char *msg) { - bb_error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg); + bb_error_msg("error: argument of \"%s\" must be \"on\" or \"off\"", msg); return -1; } @@ -200,7 +200,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr if (alen < 0) return -1; if (alen != halen) { - bb_error_msg("Wrong address (%s) length: expected %d bytes", lla, halen); + bb_error_msg("wrong address (%s) length: expected %d bytes", lla, halen); return -1; } return 0; @@ -349,6 +349,6 @@ int do_iplink(int argc, char **argv) } else return ipaddr_list_link(0, NULL); - bb_error_msg("Command \"%s\" is unknown.", *argv); + bb_error_msg("command \"%s\" is unknown", *argv); exit(-1); } diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index 094a3b0..552f4bf 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c @@ -206,10 +206,10 @@ int get_prefix_1(inet_prefix * dst, char *arg, int family) int get_addr(inet_prefix * dst, char *arg, int family) { if (family == AF_PACKET) { - bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg); + bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context", arg); } if (get_addr_1(dst, arg, family)) { - bb_error_msg_and_die("an inet address is expected rather than \"%s\".", arg); + bb_error_msg_and_die("an inet address is expected rather than \"%s\"", arg); } return 0; } @@ -217,10 +217,10 @@ int get_addr(inet_prefix * dst, char *arg, int family) int get_prefix(inet_prefix * dst, char *arg, int family) { if (family == AF_PACKET) { - bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg); + bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context", arg); } if (get_prefix_1(dst, arg, family)) { - bb_error_msg_and_die("an inet address is expected rather than \"%s\".", arg); + bb_error_msg_and_die("an inet address is expected rather than \"%s\"", arg); } return 0; } @@ -237,7 +237,7 @@ __u32 get_addr32(char *name) void incomplete_command(void) { - bb_error_msg("Command line is not complete. Try option \"help\""); + bb_error_msg("command line is not complete, try option \"help\""); exit(-1); } @@ -249,13 +249,13 @@ void invarg(const char * const arg, const char * const opt) void duparg(char *key, char *arg) { - bb_error_msg("duplicate \"%s\": \"%s\" is the second value.", key, arg); + bb_error_msg("duplicate \"%s\": \"%s\" is the second value", key, arg); exit(-1); } void duparg2(char *key, char *arg) { - bb_error_msg("either \"%s\" is duplicate, or \"%s\" is a garbage.", key, arg); + bb_error_msg("either \"%s\" is duplicate, or \"%s\" is a garbage", key, arg); exit(-1); } |