Fix: print format type mismatch warnings on 32-bit
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Jan 2015 22:08:08 +0000 (17:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Jan 2015 22:08:58 +0000 (17:08 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/lttng-live/lttng-live-comm.c

index b9bbbb6725da0aa2bcb7076a0e624b848db44206..5205a67aef3dd26ed16ff9324901627addd19ba9 100644 (file)
@@ -680,8 +680,8 @@ retry:
                goto error;
        }
        if (ret_len != sizeof(rp)) {
-               fprintf(stderr, "[error] get_data_packet: expected %" PRId64
-                               ", received %" PRId64 "\n", sizeof(rp),
+               fprintf(stderr, "[error] get_data_packet: expected %zu"
+                               ", received %zd\n", sizeof(rp),
                                ret_len);
                goto error;
        }
@@ -1655,7 +1655,7 @@ int lttng_live_read(struct lttng_live_ctx *ctx)
 
        for (i = 0; i < ctx->session_ids->len; i++) {
                id = g_array_index(ctx->session_ids, uint64_t, i);
-               printf_verbose("Attaching to session %lu\n", id);
+               printf_verbose("Attaching to session %" PRIu64 "\n", id);
                ret = lttng_live_attach_session(ctx, id);
                printf_verbose("Attaching session returns %d\n", ret);
                if (ret < 0) {
This page took 0.025447 seconds and 4 git commands to generate.