From: David Goulet Date: Tue, 3 Dec 2013 16:54:00 +0000 (-0500) Subject: Fix: string format with unsigned value X-Git-Tag: v2.4.0-rc2~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=535b8ff4d115dfc5be97d9d90fd36ca772b10e87;p=lttng-tools.git 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;