ipaddr: fix a typo in error msg about SIOCGIFTXQLEN
The optname was wrong. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
This commit is contained in:
parent
e59fd3db2e
commit
d36035185c
|
|
@ -163,7 +163,7 @@ static void print_queuelen(FILE *f, struct rtattr *tb[IFLA_MAX + 1])
|
|||
memset(&ifr, 0, sizeof(ifr));
|
||||
strcpy(ifr.ifr_name, rta_getattr_str(tb[IFLA_IFNAME]));
|
||||
if (ioctl(s, SIOCGIFTXQLEN, &ifr) < 0) {
|
||||
fprintf(f, "ioctl(SIOCGIFXQLEN) failed: %s\n", strerror(errno));
|
||||
fprintf(f, "ioctl(SIOCGIFTXQLEN) failed: %s\n", strerror(errno));
|
||||
close(s);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue