Clarify error message on "add context" failure
[lttng-tools.git] / src / bin / lttng-sessiond / context.c
index 2cc6a30a84fd5d0e93566261c3c462d1f61bba55..866a039e74dc0c07a7171f1d22ca7994435d541e 100644 (file)
@@ -15,7 +15,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -261,11 +261,6 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
        case LTTNG_DOMAIN_UST:
                chan_ht = usess->domain_global.channels;
                break;
-#if 0
-       case LTTNG_DOMAIN_UST_EXEC_NAME:
-       case LTTNG_DOMAIN_UST_PID:
-       case LTTNG_DOMAIN_UST_PID_FOLLOW_CHILDREN:
-#endif
        default:
                ret = LTTNG_ERR_UND;
                goto error;
@@ -289,7 +284,8 @@ int context_ust_add(struct ltt_ust_session *usess, int domain,
                cds_lfht_for_each_entry(chan_ht->ht, &iter.iter, uchan, node.node) {
                        ret = add_uctx_to_channel(usess, domain, uchan, ctx);
                        if (ret < 0) {
-                               ERR("Context failed for channel %s", uchan->name);
+                               ERR("Failed to add context to channel %s",
+                                               uchan->name);
                                continue;
                        }
                }
This page took 0.023758 seconds and 4 git commands to generate.