CTF: Cleanup writing uuid to Ctf packet
Use QUuid::toBytes instead of manual conversion. Pick-to: 6.5 Change-Id: Iba2c32eb258e21cd207b5bc19af0409b6b9e26b5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8c0b657c9a
commit
344bf51cfd
@ -148,12 +148,7 @@ void QCtfLibImpl::writeCtfPacket(QCtfLibImpl::Channel &ch)
|
||||
/* Each packet contains header and context, which are defined in the metadata.txt */
|
||||
QByteArray packet;
|
||||
packet << s_CtfHeaderMagic;
|
||||
/* Uuid is array of bytes hence implicitely big endian. */
|
||||
packet << qToBigEndian(s_TraceUuid.data1);
|
||||
packet << qToBigEndian(s_TraceUuid.data2);
|
||||
packet << qToBigEndian(s_TraceUuid.data3);
|
||||
for (int i = 0; i < 8; i++)
|
||||
packet << s_TraceUuid.data4[i];
|
||||
packet.append(QByteArrayView(s_TraceUuid.toBytes()));
|
||||
|
||||
packet << quint32(0);
|
||||
packet << ch.minTimestamp;
|
||||
|
Loading…
Reference in New Issue
Block a user