]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2-stats.patch
- added temporary workaround for kernel 2.6.0 - FOR TESTING cvs up iproute2.spec!
[packages/iproute2.git] / iproute2-stats.patch
1 diff -urN iproute2/ip/ipaddress.c.orig iproute2/ip/ipaddress.c
2 --- iproute2/ip/ipaddress.c.orig        Sat Sep 27 03:56:06 2003
3 +++ iproute2/ip/ipaddress.c     Sat Sep 27 04:02:40 2003
4 @@ -220,9 +220,9 @@
5                         s = &slocal;
6                 }
7                 fprintf(fp, "%s", _SL_);
8 -               fprintf(fp, "    RX: bytes  packets  errors  dropped overrun mcast   %s%s",
9 +               fprintf(fp, "    RX: bytes      packets  errors  dropped overrun mcast   %s%s",
10                         s->rx_compressed ? "compressed" : "", _SL_);
11 -               fprintf(fp, "    %-10lu %-8lu %-7lu %-7lu %-7lu %-7lu",
12 +               fprintf(fp, "    %-14llu %-8lu %-7lu %-7lu %-7lu %-7lu",
13                         s->rx_bytes, s->rx_packets, s->rx_errors,
14                         s->rx_dropped, s->rx_over_errors,
15                         s->multicast
16 @@ -232,7 +232,7 @@
17                 if (show_stats > 1) {
18                         fprintf(fp, "%s", _SL_);
19                         fprintf(fp, "    RX errors: length  crc     frame   fifo    missed%s", _SL_);
20 -                       fprintf(fp, "               %-7lu  %-7lu %-7lu %-7lu %-7lu",
21 +                       fprintf(fp, "               %-7lu %-7lu %-7lu %-7lu %-7lu",
22                                 s->rx_length_errors,
23                                 s->rx_crc_errors,
24                                 s->rx_frame_errors,
25 @@ -241,9 +241,9 @@
26                                 );
27                 }
28                 fprintf(fp, "%s", _SL_);
29 -               fprintf(fp, "    TX: bytes  packets  errors  dropped carrier collsns %s%s",
30 +               fprintf(fp, "    TX: bytes      packets  errors  dropped carrier collsns %s%s",
31                         s->tx_compressed ? "compressed" : "", _SL_);
32 -               fprintf(fp, "    %-10lu %-8lu %-7lu %-7lu %-7lu %-7lu",
33 +               fprintf(fp, "    %-14llu %-8lu %-7lu %-7lu %-7lu %-7lu",
34                         s->tx_bytes, s->tx_packets, s->tx_errors,
35                         s->tx_dropped, s->tx_carrier_errors, s->collisions);
36                 if (s->tx_compressed)
37 @@ -251,7 +251,7 @@
38                 if (show_stats > 1) {
39                         fprintf(fp, "%s", _SL_);
40                         fprintf(fp, "    TX errors: aborted fifo    window  heartbeat%s", _SL_);
41 -                       fprintf(fp, "               %-7lu  %-7lu %-7lu %-7lu",
42 +                       fprintf(fp, "               %-7lu %-7lu %-7lu %-7lu",
43                                 s->tx_aborted_errors,
44                                 s->tx_fifo_errors,
45                                 s->tx_window_errors,
This page took 0.064538 seconds and 3 git commands to generate.