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 <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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: