aboutsummaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2015-12-21 20:42:56 +0100
committerStephen Hemminger <shemming@brocade.com>2015-12-21 21:33:51 -0800
commitf8fc1d101e74fc9f1f9ca57b5e494c2f7bc33bf7 (patch)
tree5d1771755e2b2ea91bf908ebe7eb4eea5a7404e1 /ip
parent7d6aadcd0a1dc795d72e1ab311aee333c763fe71 (diff)
downloadplatform_external_iproute2-f8fc1d101e74fc9f1f9ca57b5e494c2f7bc33bf7.tar.gz
platform_external_iproute2-f8fc1d101e74fc9f1f9ca57b5e494c2f7bc33bf7.tar.bz2
platform_external_iproute2-f8fc1d101e74fc9f1f9ca57b5e494c2f7bc33bf7.zip
iptunnel: Fix compile error in ip/tunnel.c
I repeatedly failed to get this right, so now I have to clean up my mess afterwards. Fixes: 7d6aadcd0a1dc ("ip{,6}tunnel: have a shared stats parser/printer") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'ip')
-rw-r--r--ip/tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/tunnel.c b/ip/tunnel.c
index 1dd80922..39f825ba 100644
--- a/ip/tunnel.c
+++ b/ip/tunnel.c
@@ -208,7 +208,7 @@ void tnl_print_stats(const char *buf)
tx_bytes, tx_packets, tx_errs, tx_drops,
tx_fifo, tx_colls, tx_carrier, rx_multi;
- if (sscanf(ptr, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu",
+ if (sscanf(buf, "%lu%lu%lu%lu%lu%lu%lu%*d%lu%lu%lu%lu%lu%lu%lu",
&rx_bytes, &rx_packets, &rx_errs, &rx_drops,
&rx_fifo, &rx_frame, &rx_multi,
&tx_bytes, &tx_packets, &tx_errs, &tx_drops,