Fix: don't use newlines in logging message
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Sep 2019 22:20:01 +0000 (18:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:16 +0000 (16:39 -0400)
Using explicit newlines ('\n') in a logging messages breaks the
logging output and makes it unnecessarily harder to read and parse the
LTTng daemons' logs.

Moreover, it is unnecessary to escape multi-line string literals.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/session.c

index 888bb88ebc53cc916dada51f23db5e011dc3ced2..c4a62c986946ac09f73fe66108b060b534915ff3 100644 (file)
@@ -47,8 +47,8 @@ static int session_set_anonymous_chunk(struct relay_session *session)
                /* No output path defined */
                const char *home_dir = utils_get_home_dir();
                if (!home_dir) {
-                       ERR("Home path not found.\n \
-                                       Please specify an output path using -o, --output PATH");
+                       ERR("Home path not found."
+                                       Please specify an output path using -o, --output PATH");
                        ret = -1;
                        goto end;
                }
This page took 0.027374 seconds and 4 git commands to generate.