X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.c;h=1abd4cef1e6c242b3451ad940969d7fc964b53de;hp=f3fdc0e72423e30eabac4850571048861daaf974;hb=d686b40f66ea5df5ac0b9405991bbc33348b0a88;hpb=2ef84c95c5158ce40e77229fb5705524ff22be7b diff --git a/ltt-sessiond/kernel-ctl.c b/ltt-sessiond/kernel-ctl.c index f3fdc0e72..1abd4cef1 100644 --- a/ltt-sessiond/kernel-ctl.c +++ b/ltt-sessiond/kernel-ctl.c @@ -123,6 +123,7 @@ int kernel_enable_event(struct ltt_kernel_session *session, char *name) cds_list_for_each_entry(chan, &session->channel_list.head, list) { ret = kernctl_create_event(chan->fd, event->event); if (ret < 0) { + ERR("Unable to enable event %s", name); goto error; } @@ -317,7 +318,7 @@ ssize_t kernel_list_events(int tracer_fd, char **list) while ((size = getline(&line, &nb, fp)) != -1) { if (total + size > nbmem) { - DBG("Reallocating event list from %ld to %ld bytes", nbmem, + DBG("Reallocating event list from %zd to %zd bytes", nbmem, total + size + KERNEL_EVENT_LIST_SIZE); /* Adding the default size again */ nbmem = total + size + KERNEL_EVENT_LIST_SIZE;