From: Jérémie Galarneau Date: Thu, 5 Sep 2019 12:47:40 +0000 (-0400) Subject: Fix: incorrect conversion specifier used with size and padding X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=8c865d87ff9d07d8a4a52e055855c5e2e9a2ab0b;p=lttng-tools.git Fix: incorrect conversion specifier used with size and padding packet>size and padding_len, of type size_t, are 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 5af870d36..efe132d1c 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -1000,10 +1000,10 @@ int stream_write(struct relay_stream *stream, stream->metadata_received += packet->size + padding_len; } - DBG("Wrote to %sstream %" PRIu64 ": data_length = %" PRIu64 ", padding_length = %" PRIu64, + DBG("Wrote to %sstream %" PRIu64 ": data_length = %zu, padding_length = %zu", stream->is_metadata ? "metadata " : "", stream->stream_handle, - packet ? packet->size : 0, padding_len); + packet ? packet->size : (size_t) 0, padding_len); end: return ret; }