From: Jérémie Galarneau Date: Thu, 5 Sep 2019 12:42:40 +0000 (-0400) Subject: Fix: incorrect conversion specifier used with packet size X-Git-Tag: v2.12.0-rc1~462 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=76ee92457557c5dca7b22350e118e7c611630b08 Fix: incorrect conversion specifier used with packet size packet_size, of type size_t, is logged using a %PRIu64 specifier resulting in a warning being emitted on 32-bit architectures. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index 043d19612..5af870d36 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -922,7 +922,7 @@ int stream_init_packet(struct relay_stream *stream, size_t packet_size, } DBG("New stream packet causes stream file rotation: stream_id = %" PRIu64 ", current_file_size = %" PRIu64 - ", packet_size = %" PRIu64 ", current_file_index = %" PRIu64 + ", packet_size = %zu, current_file_index = %" PRIu64 " new_file_index = %" PRIu64, stream->stream_handle, stream->tracefile_size_current, packet_size,