projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format string support
[lttv.git]
/
trunk
/
lttv
/
lttv
/
lttv
/
print.c
diff --git
a/trunk/lttv/lttv/lttv/print.c
b/trunk/lttv/lttv/lttv/print.c
index 11b3359079c362489fa90055b31b664eabf01c7e..0ef57869db6edc02cce0dcb46156b864ed9a29c6 100644
(file)
--- a/
trunk/lttv/lttv/lttv/print.c
+++ b/
trunk/lttv/lttv/lttv/print.c
@@
-81,7
+81,8
@@
void lttv_print_field(LttEvent *e, struct marker_field *f, GString *s,
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
value = ltt_event_get_long_int(e,f);
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
value = ltt_event_get_long_int(e,f);
- g_string_append_printf(s, "%lld", value);
+ //g_string_append_printf(s, "%lld", value);
+ g_string_append_printf(s, f->fmt->str, value);
//g_string_append_printf(s, type->fmt, ltt_event_get_long_int(e,f));
print_enum_events(e, f, value, s, tfs);
break;
//g_string_append_printf(s, type->fmt, ltt_event_get_long_int(e,f));
print_enum_events(e, f, value, s, tfs);
break;
@@
-93,7
+94,8
@@
void lttv_print_field(LttEvent *e, struct marker_field *f, GString *s,
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
value = ltt_event_get_long_unsigned(e,f);
g_string_append_printf(s, "%s = ", g_quark_to_string(name));
}
value = ltt_event_get_long_unsigned(e,f);
- g_string_append_printf(s, "%llu", value);
+ //g_string_append_printf(s, "%llu", value);
+ g_string_append_printf(s, f->fmt->str, value);
print_enum_events(e, f, value, s, tfs);
//g_string_append_printf(s, type->fmt, ltt_event_get_long_unsigned(e,f));
break;
print_enum_events(e, f, value, s, tfs);
//g_string_append_printf(s, type->fmt, ltt_event_get_long_unsigned(e,f));
break;
This page took
0.022774 seconds
and
4
git commands to generate.