Ignore:
Timestamp:
11/07/05 10:06:22 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
5843707
Parents:
130a0e4
Message:

a lot of changes for cross-compilation support

  • header ordering
  • os-specific headers
  • an lt_inttypes.h which defines PRIu64 etc for platforms that don't have them
  • removed daglegacy.h, merged with dagformat.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/tracertstats/output_txt.c

    r9c13ab0 re3b0188  
    22#include <stdio.h>
    33#include <stdlib.h>
     4#include <inttypes.h>
     5#include <lt_inttypes.h>
    46
    57#define COLWIDTH 11
     
    2830                switch (out->data[i].type) {
    2931                        case TYPE_int:
    30                                 printf("%*" PRIu64 " ",COLWIDTH-1,out->data[i].d_int);
     32                                printf("%*" PRIu64 " ",COLWIDTH-1,out->data[i].d.d_int);
    3133                                break;
    3234                        case TYPE_str:
    33                                 printf("%*s ",COLWIDTH-1,out->data[i].d_str);
    34                                 free(out->data[i].d_str);
     35                                printf("%*s ",COLWIDTH-1,out->data[i].d.d_str);
     36                                free(out->data[i].d.d_str);
    3537                                break;
    3638                        case TYPE_float:
    37                                 printf("%*f ",COLWIDTH-1,out->data[i].d_float);
     39                                printf("%*f ",COLWIDTH-1,out->data[i].d.d_float);
    3840                                break;
    3941                        case TYPE_time:
    40                                 printf("%*.0f ",COLWIDTH-1,out->data[i].d_time);
     42                                printf("%*.0f ",COLWIDTH-1,out->data[i].d.d_time);
    4143                                break;
    4244                }
Note: See TracChangeset for help on using the changeset viewer.