Fix: don't print stream name in error message
authorDavid Goulet <dgoulet@efficios.com>
Tue, 1 Apr 2014 15:36:13 +0000 (11:36 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 1 Apr 2014 15:38:12 +0000 (11:38 -0400)
The stream received, in per UID, is actually a temporary stream object
that only contains the UST object data which is the relevant part for
UST to use.

Thus on error the name was random data thus print the valid handle
descriptor instead of invalid data.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-consumer.c

index 2bbc5b43b28eca1ff941052f8ddc6602e2b7b2aa..da0d8d3f4214fb298e1451eb35fb387c083ef6a0 100644 (file)
@@ -380,8 +380,8 @@ int ust_consumer_send_stream_to_ust(struct ust_app *app,
        ret = ustctl_send_stream_to_ust(app->sock, channel->obj, stream->obj);
        if (ret < 0) {
                if (ret != -EPIPE && ret != -LTTNG_UST_ERR_EXITING) {
-                       ERR("Error ustctl send stream %s to app pid: %d with ret %d",
-                                       stream->name, app->pid, ret);
+                       ERR("ustctl send stream handle %d to app pid: %d with ret %d",
+                                       stream->obj->handle, app->pid, ret);
                } else {
                        DBG3("UST app send stream to ust failed. Application is dead.");
                }
This page took 0.025108 seconds and 4 git commands to generate.