Fix: string format with unsigned value
authorDavid Goulet <dgoulet@efficios.com>
Tue, 3 Dec 2013 16:54:00 +0000 (11:54 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 3 Dec 2013 16:54:00 +0000 (11:54 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/trace-kernel.c

index a5c215fae98a068f359c0bf182e307a693dc9244..363d010a1a2aed47213e51ae240ed3a00fd5d460 100644 (file)
@@ -307,7 +307,7 @@ struct ltt_kernel_stream *trace_kernel_create_stream(const char *name,
        }
 
        /* Set name */
-       ret = snprintf(lks->name, sizeof(lks->name), "%s_%d", name, count);
+       ret = snprintf(lks->name, sizeof(lks->name), "%s_%u", name, count);
        if (ret < 0) {
                PERROR("snprintf stream name");
                goto error;
This page took 0.025887 seconds and 4 git commands to generate.