diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-05 22:57:25 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-05 22:57:25 -0500 |
commit | 9da59d86f9e42bfd991163f3213a2a0099351a0d (patch) | |
tree | 6d2db6d22bb3505964358236e1b6025e8da5fba8 | |
parent | 2cb26711cd0bc74d763db72e45307b0f9c93b655 (diff) |
trace-view: Shut up the stupid gcc warning
A printf format has %llu for reading guint64, which is necessary
on 32bit boxes. But unfortunately, on 64 bit boxes, guint64 is a long.
This makes it inconsistent for how to read it. Just typecast it to
long long and shut up the warning.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-view-store.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trace-view-store.c b/trace-view-store.c index b61b249..b78e04e 100644 --- a/trace-view-store.c +++ b/trace-view-store.c | |||
@@ -438,7 +438,8 @@ trace_view_store_get_value (GtkTreeModel *tree_model, | |||
438 | usecs /= 1000; | 438 | usecs /= 1000; |
439 | secs = usecs / 1000000ULL; | 439 | secs = usecs / 1000000ULL; |
440 | usecs -= secs * 1000000ULL; | 440 | usecs -= secs * 1000000ULL; |
441 | str = g_strdup_printf("%llu.%06llu", secs, usecs); | 441 | str = g_strdup_printf("%llu.%06llu", |
442 | (long long)secs, (long long)usecs); | ||
442 | g_value_set_string(value, str); | 443 | g_value_set_string(value, str); |
443 | g_free(str); | 444 | g_free(str); |
444 | break; | 445 | break; |