From 473a744f812cc3709fd3dcf33ef7043c07a99cb1 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 1 Apr 2014 11:36:13 -0400 Subject: [PATCH] Fix: don't print stream name in error message 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 --- src/bin/lttng-sessiond/ust-consumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/ust-consumer.c b/src/bin/lttng-sessiond/ust-consumer.c index 2bbc5b43b..da0d8d3f4 100644 --- a/src/bin/lttng-sessiond/ust-consumer.c +++ b/src/bin/lttng-sessiond/ust-consumer.c @@ -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."); } -- 2.34.1