CTF: Fix channel naming

This was erroniously removed in a previous change.

Pick-to: 6.5
Change-Id: Ia62327bea7e3d190503a0eb05217c0f780f4fe9a
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
(cherry picked from commit 720bb62f5c24ddb06f2cb4252c513c9d5b0e9639)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Antti Määttä 2023-08-30 09:40:09 +03:00 committed by Qt Cherry-pick Bot
parent 8e14e13c16
commit 652e2c571f

View File

@ -301,6 +301,7 @@ void QCtfLibImpl::doTracepoint(const QCtfTracePointEvent &point, const QByteArra
if (ch.channelName[0] == 0) {
m_threadIndices.insert(thread, m_threadIndices.size());
sprintf(ch.channelName, "%s/channel_%d", qPrintable(m_location), m_threadIndices[thread]);
ch.minTimestamp = ch.maxTimestamp = timestamp;
ch.thread = thread;
ch.threadIndex = m_threadIndices[thread];