Fix missing channel name copy for auto channel creation
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 23 Nov 2011 21:22:02 +0000 (16:22 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 23 Nov 2011 21:22:02 +0000 (16:22 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/main.c

index e079afb7dc3bd8fad4def6c0729a29c41af2482e..4bb7240378161540cb4573e4a3fc91e076dbdbae 100644 (file)
@@ -2445,6 +2445,7 @@ static int cmd_enable_event(struct ltt_session *session, int domain,
                                ret = LTTCOMM_FATAL;
                                goto error;
                        }
+                       snprintf(attr->name, NAME_MAX, "%s", channel_name);
 
                        /* Use the internal command enable channel */
                        ret = cmd_enable_channel(session, domain, attr);
This page took 0.028068 seconds and 4 git commands to generate.