summaryrefslogtreecommitdiff
path: root/networking/libiproute/iplink.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-11-28 10:56:38 +0000
committerGlenn L McGrath2002-11-28 10:56:38 +0000
commit9048ae59238cd4bde1e5232d9edcd7b37cf5e84b (patch)
treefe4c65ac086f37176757e8309b74aefd25c03f9c /networking/libiproute/iplink.c
parentdf72536f8e9c337c103727c1d1503985cced73e6 (diff)
downloadbusybox-9048ae59238cd4bde1e5232d9edcd7b37cf5e84b.zip
busybox-9048ae59238cd4bde1e5232d9edcd7b37cf5e84b.tar.gz
Use standard error messages
Diffstat (limited to 'networking/libiproute/iplink.c')
-rw-r--r--networking/libiproute/iplink.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 90d60b4..c9d218a 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -35,7 +35,7 @@
static int on_off(char *msg)
{
- fprintf(stderr, "Error: argument of \"%s\" must be \"on\" or \"off\"\n", msg);
+ error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg);
return -1;
}
@@ -204,7 +204,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr
if (alen < 0)
return -1;
if (alen != halen) {
- fprintf(stderr, "Wrong address (%s) length: expected %d bytes\n", lla, halen);
+ error_msg("Wrong address (%s) length: expected %d bytes", lla, halen);
return -1;
}
return 0;
@@ -286,7 +286,7 @@ static int do_set(int argc, char **argv)
}
if (!dev) {
- fprintf(stderr, "Not enough of information: \"dev\" argument is required.\n");
+ error_msg("Not enough of information: \"dev\" argument is required.");
exit(-1);
}
@@ -344,6 +344,6 @@ int do_iplink(int argc, char **argv)
} else
return ipaddr_list_link(0, NULL);
- fprintf(stderr, "Command \"%s\" is unknown, try \"ip link help\".\n", *argv);
+ error_msg("Command \"%s\" is unknown, try \"ip link help\".", *argv);
exit(-1);
}