Changeset a141264


Ignore:
Timestamp:
09/12/11 13:43:36 (9 years ago)
Author:
Shane Alcock <salcock@…>
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
Message:
  • Fixed warning on 32 bit machines when building traceends
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/traceends/traceends.cc

    rd6dc0f6 ra141264  
     1#define __STDC_FORMAT_MACROS
     2
    13#include <libtrace.h>
    24#include <stdio.h>
     
    7072        "-f --filter=bpf        Only output packets that match filter\n"
    7173        "-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"
    7375        ,argv0);
    7476        exit(1);
     
    117119                tm = localtime(&t);
    118120                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",
    120122                                mac_string(it->first, str),
    121123                                timestr,
     
    140142                tm = localtime(&t);
    141143                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",
    143145                                inet_ntoa(in),
    144146                                timestr,
     
    165167                tm = localtime(&t);
    166168                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",
    168170                                inet_ntop(AF_INET6, &in, ip6_addr, 128),
    169171                                timestr,
Note: See TracChangeset for help on using the changeset viewer.