Fix wrong lttng_channel name size
[lttng-tools.git] / lttng-sessiond / trace-ust.c
index 1a1304ac1db9a16d0f3cfd5ca05ddbd9fd3cdc37..903a4430393641eccdd9b4367cd65b1bdbf4ff82 100644 (file)
@@ -158,7 +158,7 @@ struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *chan,
        }
 
        /* Copy channel name */
-       strncpy(luc->name, chan->name, sizeof(&luc->name));
+       strncpy(luc->name, chan->name, sizeof(luc->name));
        luc->name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0';
 
        /* Init node */
@@ -212,6 +212,9 @@ struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev)
        case LTTNG_EVENT_TRACEPOINT:
                lue->attr.instrumentation = LTTNG_UST_TRACEPOINT;
                break;
+       case LTTNG_EVENT_TRACEPOINT_LOGLEVEL:
+               lue->attr.instrumentation = LTTNG_UST_TRACEPOINT_LOGLEVEL;
+               break;
        default:
                ERR("Unknown ust instrumentation type (%d)", ev->type);
                goto error_free_event;
This page took 0.023884 seconds and 4 git commands to generate.