stream.c: standardize "Cannot truncate stream file [...]" log message
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 19 Jun 2017 23:05:33 +0000 (19:05 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Jul 2017 20:06:40 +0000 (16:06 -0400)
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>
lib/ctf-ir/stream.c

index 8ba0977c13bef601458dc296b13809805b4032c3..8145eb718814c740736c28d17fd6ce7f640b7c2c 100644 (file)
@@ -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:
This page took 0.026254 seconds and 4 git commands to generate.