Commit d3603518 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by Stephen Hemminger

ipaddr: fix a typo in error msg about SIOCGIFTXQLEN

The optname was wrong.
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
parent e59fd3db
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment