mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-13 15:22:58 +00:00
ipaddress: print error message on stderr
Convention is to print error messages only on stderr. Helps when scripting. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
546109a7cf
commit
f36f8fe535
@ -174,7 +174,9 @@ static void print_queuelen(FILE *f, struct rtattr *tb[IFLA_MAX + 1])
|
|||||||
|
|
||||||
strcpy(ifr.ifr_name, rta_getattr_str(tb[IFLA_IFNAME]));
|
strcpy(ifr.ifr_name, rta_getattr_str(tb[IFLA_IFNAME]));
|
||||||
if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) {
|
if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) {
|
||||||
fprintf(f, "ioctl(SIOCGIFTXQLEN) failed: %s\n", strerror(errno));
|
fprintf(stderr,
|
||||||
|
"ioctl(SIOCGIFTXQLEN) failed: %s\n",
|
||||||
|
strerror(errno));
|
||||||
close(s);
|
close(s);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user