From: David Goulet Date: Tue, 3 Dec 2013 16:54:00 +0000 (-0500) Subject: Fix: string format with unsigned value X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=535b8ff4d115dfc5be97d9d90fd36ca772b10e87 Fix: string format with unsigned value Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/trace-kernel.c b/src/bin/lttng-sessiond/trace-kernel.c index a5c215fae..363d010a1 100644 --- a/src/bin/lttng-sessiond/trace-kernel.c +++ b/src/bin/lttng-sessiond/trace-kernel.c @@ -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;