From 0290b3c5d4f0bb3a893bd5d2fd9821fba8e904d3 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 19 Jun 2017 19:05:33 -0400 Subject: [PATCH] stream.c: standardize "Cannot truncate stream file [...]" log message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Standardized: * Do not put a function name in a non-DEBUG/non-VERBOSE statement. * Do not put spaces around the `=` of fields. * Prepend `: ` before fields. Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- lib/ctf-ir/stream.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/ctf-ir/stream.c b/lib/ctf-ir/stream.c index 8ba0977c..8145eb71 100644 --- a/lib/ctf-ir/stream.c +++ b/lib/ctf-ir/stream.c @@ -1688,10 +1688,11 @@ int bt_ctf_stream_flush(struct bt_ctf_stream *stream) ret = ftruncate(stream->pos.fd, stream->size); } while (ret == -1 && errno == EINTR); if (ret == -1) { - BT_LOGE_ERRNO("Cannot ftruncate() stream file to new size", - "size = %" PRIu64 ", name = %s", - stream->size, - stream->name ? stream->name->str : "(null)"); + BT_LOGE_ERRNO("Cannot truncate stream file to new size", + ": size=%" PRIu64 ", stream-addr=%p, " + "stream-name=\"%s\"", + stream->size, stream, + bt_ctf_stream_get_name(stream)); } end: -- 2.34.1