From: Mathieu Desnoyers Date: Tue, 20 Mar 2012 16:58:19 +0000 (-0400) Subject: Fix debug message use uninitialized variable X-Git-Tag: v2.0.0-rc4~13^2~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=032b44f037bc3aeeb21a2e1679fa88eba2e3b551;p=lttng-tools.git Fix debug message use uninitialized variable Reported-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 0c4d4b1f9..6880973a1 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -595,7 +595,7 @@ static int send_kconsumer_session_streams(struct consumer_data *consumer_data, lkm.u.channel.channel_key = session->metadata->fd; lkm.u.channel.max_sb_size = session->metadata->conf->attr.subbuf_size; lkm.u.channel.mmap_len = 0; /* for kernel */ - DBG("Sending metadata channel %d to consumer", lkm.u.stream.stream_key); + DBG("Sending metadata channel %d to consumer", lkm.u.channel.channel_key); ret = lttcomm_send_unix_sock(sock, &lkm, sizeof(lkm)); if (ret < 0) { PERROR("send consumer channel");