Use kernel and not UST sym name len for kernel tracing. Fixed build when
UST is disabled.
Fix bug introduced in 2.3-rc dev cycle by:
commit
850767541647c102a299d7fbc39c97555ac70224
Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Date: Fri Jul 19 09:04:29 2013 -0400
Fix: (slight UI change) refuse missing -c if non-default channel exists
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
strncpy(lkc->channel->name, DEFAULT_CHANNEL_NAME,
sizeof(lkc->channel->name));
}
- lkc->channel->name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0';
+ lkc->channel->name[LTTNG_KERNEL_SYM_NAME_LEN - 1] = '\0';
lkc->fd = -1;
lkc->stream_count = 0;