X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fkernel-ctl.c;h=1abd4cef1e6c242b3451ad940969d7fc964b53de;hp=bf25de62f3be82ee738193684236cc0056c7bce5;hb=d686b40f66ea5df5ac0b9405991bbc33348b0a88;hpb=33a2b85433875769e92ca44a680c46b9498f5174 diff --git a/ltt-sessiond/kernel-ctl.c b/ltt-sessiond/kernel-ctl.c index bf25de62f..1abd4cef1 100644 --- a/ltt-sessiond/kernel-ctl.c +++ b/ltt-sessiond/kernel-ctl.c @@ -318,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;