From: Nicolas Dichtel Date: Tue, 29 Jan 2013 16:46:42 +0000 (-0800) Subject: ipaddr: fix a typo in error msg about SIOCGIFTXQLEN X-Git-Tag: v3.8.0~3^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d36035185ce948f6bf85978b6903cce1293061d7;p=thirdparty%2Fiproute2.git ipaddr: fix a typo in error msg about SIOCGIFTXQLEN The optname was wrong. Signed-off-by: Nicolas Dichtel --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 16f92d914..2eb1a0a62 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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; }