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_html.c

    r65cdb7f re3b0188  
    22#include <stdio.h>
    33#include <stdlib.h>
     4#include <inttypes.h>
     5#include <lt_inttypes.h>
    46
    57static void output_html_init(struct output_data_t *out)
     
    3840                switch (out->data[i].type) {
    3941                        case TYPE_int:
    40                                 printf("  <td class=\"numeric\">%" PRIu64 "</td>\n",out->data[i].d_int);
     42                                printf("  <td class=\"numeric\">%" PRIu64 "</td>\n",out->data[i].d.d_int);
    4143                                break;
    4244                        case TYPE_str:
    43                                 printf("  <td>%s</td>\n",out->data[i].d_str);
    44                                 free(out->data[i].d_str);
     45                                printf("  <td>%s</td>\n",out->data[i].d.d_str);
     46                                free(out->data[i].d.d_str);
    4547                                break;
    4648                        case TYPE_float:
    47                                 printf("  <td class=\"numeric\">%f</td>\n",out->data[i].d_float);
     49                                printf("  <td class=\"numeric\">%f</td>\n",out->data[i].d.d_float);
    4850                                break;
    4951                        case TYPE_time:
    50                                 printf("  <td class=\"numeric\">%.03f</td>\n",out->data[i].d_time);
     52                                printf("  <td class=\"numeric\">%.03f</td>\n",out->data[i].d.d_time);
    5153                                break;
    5254                }
Note: See TracChangeset for help on using the changeset viewer.