#include <ltt/event.h>
#include <ltt/trace.h>
#include <stdio.h>
+#include <inttypes.h>
static gboolean
a_noevent,
if(is_named) {
g_string_sprintfa(indent, "/%s", g_quark_to_string(name));
} else {
- g_string_sprintfa(indent, "/%s", name);
+ g_string_sprintfa(indent, "/%" PRIu32, (guint32) name);
}
switch(type) {
if(is_named)
fprintf(fp, "%s%s: ", indent->str, g_quark_to_string(name));
else
- fprintf(fp, "%s%lu: ", indent->str, name);
+ fprintf(fp, "%s%" PRIu32 ": ", indent->str,
+ (guint32) name);
switch(type) {
case LTTV_INT:
GString *indent;
- LttSystemDescription *desc;
-
if(tscs->stats == NULL) return;
indent = g_string_new("");
fprintf(fp, "Traceset statistics:\n\n");
for(i = 0 ; i < nb ; i++) {
tcs = (LttvTraceStats *)(LTTV_TRACESET_CONTEXT(tscs)->traces[i]);
#if 0 //FIXME
+ LttSystemDescription *desc;
desc = ltt_trace_system_description(tcs->parent.parent.t);
LttTime start_time = ltt_trace_system_description_trace_start_time(desc);
fprintf(fp, "Trace on system %s at time %lu.%09lu :\n",
static gboolean write_trace_header(void *hook_data, void *call_data)
{
- LttvTraceContext *tc = (LttvTraceContext *)call_data;
#if 0 //FIXME
+ LttvTraceContext *tc = (LttvTraceContext *)call_data;
LttSystemDescription *system = ltt_trace_system_description(tc->t);
fprintf(a_file," Trace from %s in %s\n%s\n\n",