From patchwork Tue Jan 29 16:37:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [iproute2] ipaddr: fix a typo in error msg about SIOCGIFTXQLEN Date: Tue, 29 Jan 2013 06:37:08 -0000 From: Nicolas Dichtel X-Patchwork-Id: 216603 Message-Id: <1359477428-8717-1-git-send-email-nicolas.dichtel@6wind.com> To: shemminger@vyatta.com Cc: netdev@vger.kernel.org, Nicolas Dichtel The optname was wrong. Signed-off-by: Nicolas Dichtel --- ip/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 0d988ae..43b43c4 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; }