Changeset a141264 for tools/traceends
- Timestamp:
- 09/12/11 13:43:36 (9 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 08ad92e
- Parents:
- fc01bee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/traceends/traceends.cc
rd6dc0f6 ra141264 1 #define __STDC_FORMAT_MACROS 2 1 3 #include <libtrace.h> 2 4 #include <stdio.h> … … 70 72 "-f --filter=bpf Only output packets that match filter\n" 71 73 "-H --help Print this message\n" 72 "-A --address Specifies which address type to match (mac, v4, v6)\n"74 "-A --address=addr Specifies which address type to match (mac, v4, v6)\n" 73 75 ,argv0); 74 76 exit(1); … … 117 119 tm = localtime(&t); 118 120 strftime(timestr, 80, "%d/%m,%H:%M:%S", tm); 119 printf("%18s %16s % 16lu %16lu %16lu %16lu %16lu %16lu\n",121 printf("%18s %16s %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 "\n", 120 122 mac_string(it->first, str), 121 123 timestr, … … 140 142 tm = localtime(&t); 141 143 strftime(timestr, 80, "%d/%m,%H:%M:%S", tm); 142 printf("%16s %16s % 16lu %16lu %16lu %16lu %16lu %16lu\n",144 printf("%16s %16s %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 "\n", 143 145 inet_ntoa(in), 144 146 timestr, … … 165 167 tm = localtime(&t); 166 168 strftime(timestr, 80, "%d/%m,%H:%M:%S", tm); 167 printf("%40s %16s % 16lu %16lu %16lu %16lu %16lu %16lu\n",169 printf("%40s %16s %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 "\n", 168 170 inet_ntop(AF_INET6, &in, ip6_addr, 128), 169 171 timestr,
Note: See TracChangeset
for help on using the changeset viewer.