aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iplink.c
diff options
context:
space:
mode:
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 90d60b44c..c9d218a11 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -35,7 +35,7 @@
35 35
36static int on_off(char *msg) 36static int on_off(char *msg)
37{ 37{
38 fprintf(stderr, "Error: argument of \"%s\" must be \"on\" or \"off\"\n", msg); 38 error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg);
39 return -1; 39 return -1;
40} 40}
41 41
@@ -204,7 +204,7 @@ static int parse_address(char *dev, int hatype, int halen, char *lla, struct ifr
204 if (alen < 0) 204 if (alen < 0)
205 return -1; 205 return -1;
206 if (alen != halen) { 206 if (alen != halen) {
207 fprintf(stderr, "Wrong address (%s) length: expected %d bytes\n", lla, halen); 207 error_msg("Wrong address (%s) length: expected %d bytes", lla, halen);
208 return -1; 208 return -1;
209 } 209 }
210 return 0; 210 return 0;
@@ -286,7 +286,7 @@ static int do_set(int argc, char **argv)
286 } 286 }
287 287
288 if (!dev) { 288 if (!dev) {
289 fprintf(stderr, "Not enough of information: \"dev\" argument is required.\n"); 289 error_msg("Not enough of information: \"dev\" argument is required.");
290 exit(-1); 290 exit(-1);
291 } 291 }
292 292
@@ -344,6 +344,6 @@ int do_iplink(int argc, char **argv)
344 } else 344 } else
345 return ipaddr_list_link(0, NULL); 345 return ipaddr_list_link(0, NULL);
346 346
347 fprintf(stderr, "Command \"%s\" is unknown, try \"ip link help\".\n", *argv); 347 error_msg("Command \"%s\" is unknown, try \"ip link help\".", *argv);
348 exit(-1); 348 exit(-1);
349} 349}