Fix format string warnings
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 8 Aug 2011 19:42:34 +0000 (15:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Aug 2011 19:42:34 +0000 (15:42 -0400)
Print size_t as %zu.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-sessiond/kernel-ctl.c
ltt-sessiond/main.c

index 3dd146dd4b9792fe6754ef1136a49aef6b111c53..407dd580448c18d61cd0c9a2a168589fc6fb5a14 100644 (file)
@@ -599,7 +599,7 @@ ssize_t kernel_list_events(int tracer_fd, struct lttng_event **events)
 
        while ((size = fscanf(fp, "event { name = %m[^;]; };%n\n", &event, &pos)) == 1) {
                if (count > nbmem) {
-                       DBG("Reallocating event list from %zd to %zd bytes", nbmem,
+                       DBG("Reallocating event list from %zu to %zu bytes", nbmem,
                                        nbmem + KERNEL_EVENT_LIST_SIZE);
                        /* Adding the default size again */
                        nbmem += KERNEL_EVENT_LIST_SIZE;
@@ -615,7 +615,7 @@ ssize_t kernel_list_events(int tracer_fd, struct lttng_event **events)
 
        *events = elist;
 
-       DBG("Kernel list events done (%ld events)", count);
+       DBG("Kernel list events done (%zu events)", count);
 
        return count;
 
index 567742ebb783bc1a4bfdf9f6ff89ddc8193f1604..38230dbbadda372637e0621395292c4c93fbce41 100644 (file)
@@ -2062,7 +2062,7 @@ static int process_client_msg(struct command_ctx *cmd_ctx)
                        goto setup_error;
                }
 
-               DBG("Listing events (%ld events)", nb_event);
+               DBG("Listing events (%zu events)", nb_event);
 
                list_lttng_events(kchan,
                                (struct lttng_event *)(cmd_ctx->llm->payload));
This page took 0.036518 seconds and 4 git commands to generate.