提交 7e1a995e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

cosmetic: apply consistent tabulation (no tabulation) to values in Dump() methods

上级 fca4f5b1
...@@ -161,7 +161,7 @@ namespace RTC ...@@ -161,7 +161,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP("<PayloadDescriptor>"); MS_DUMP("<H264::PayloadDescriptor>");
MS_DUMP( MS_DUMP(
" s:%" PRIu8 "|e:%" PRIu8 "|i:%" PRIu8 "|d:%" PRIu8 "|b:%" PRIu8, " s:%" PRIu8 "|e:%" PRIu8 "|i:%" PRIu8 "|d:%" PRIu8 "|b:%" PRIu8,
this->s, this->s,
...@@ -171,18 +171,18 @@ namespace RTC ...@@ -171,18 +171,18 @@ namespace RTC
this->b); this->b);
if (this->hasTid) if (this->hasTid)
{ {
MS_DUMP(" tid : %" PRIu8, this->tid); MS_DUMP(" tid: %" PRIu8, this->tid);
} }
if (this->hasLid) if (this->hasLid)
{ {
MS_DUMP(" lid : %" PRIu8, this->lid); MS_DUMP(" lid: %" PRIu8, this->lid);
} }
if (this->hasTl0picidx) if (this->hasTl0picidx)
{ {
MS_DUMP(" tl0picidx : %" PRIu8, this->tl0picidx); MS_DUMP(" tl0picidx: %" PRIu8, this->tl0picidx);
} }
MS_DUMP(" isKeyFrame : %s", this->isKeyFrame ? "true" : "false"); MS_DUMP(" isKeyFrame: %s", this->isKeyFrame ? "true" : "false");
MS_DUMP("</PayloadDescriptor>"); MS_DUMP("</H264::PayloadDescriptor>");
} }
H264::PayloadDescriptorHandler::PayloadDescriptorHandler(H264::PayloadDescriptor* payloadDescriptor) H264::PayloadDescriptorHandler::PayloadDescriptorHandler(H264::PayloadDescriptor* payloadDescriptor)
......
...@@ -251,7 +251,7 @@ namespace RTC ...@@ -251,7 +251,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP("<PayloadDescriptor>"); MS_DUMP("<H264_SVC::PayloadDescriptor>");
MS_DUMP( MS_DUMP(
" s:%" PRIu8 "|e:%" PRIu8 "|i:%" PRIu8 "|d:%" PRIu8 "|b:%" PRIu8, " s:%" PRIu8 "|e:%" PRIu8 "|i:%" PRIu8 "|d:%" PRIu8 "|b:%" PRIu8,
this->s, this->s,
...@@ -259,12 +259,12 @@ namespace RTC ...@@ -259,12 +259,12 @@ namespace RTC
this->i, this->i,
this->d, this->d,
this->b); this->b);
MS_DUMP(" hasSlIndex : %s", this->hasSlIndex ? "true" : "false"); MS_DUMP(" hasSlIndex: %s", this->hasSlIndex ? "true" : "false");
MS_DUMP(" hasTlIndex : %s", this->hasTlIndex ? "true" : "false"); MS_DUMP(" hasTlIndex: %s", this->hasTlIndex ? "true" : "false");
MS_DUMP(" tl0picidx : %" PRIu8, this->tl0picidx); MS_DUMP(" tl0picidx: %" PRIu8, this->tl0picidx);
MS_DUMP(" noIntLayerPredFlag : %" PRIu8, this->noIntLayerPredFlag); MS_DUMP(" noIntLayerPredFlag: %" PRIu8, this->noIntLayerPredFlag);
MS_DUMP(" isKeyFrame : %s", this->isKeyFrame ? "true" : "false"); MS_DUMP(" isKeyFrame: %s", this->isKeyFrame ? "true" : "false");
MS_DUMP("</PayloadDescriptor>"); MS_DUMP("</H264_SVC::PayloadDescriptor>");
} }
H264_SVC::PayloadDescriptorHandler::PayloadDescriptorHandler( H264_SVC::PayloadDescriptorHandler::PayloadDescriptorHandler(
......
...@@ -45,9 +45,9 @@ namespace RTC ...@@ -45,9 +45,9 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP("<PayloadDescriptor>"); MS_DUMP("<Opus::PayloadDescriptor>");
MS_DUMP(" isDtx : %s", this->isDtx ? "true" : "false"); MS_DUMP(" isDtx: %s", this->isDtx ? "true" : "false");
MS_DUMP("</PayloadDescriptor>"); MS_DUMP("</Opus::PayloadDescriptor>");
} }
Opus::PayloadDescriptorHandler::PayloadDescriptorHandler(Opus::PayloadDescriptor* payloadDescriptor) Opus::PayloadDescriptorHandler::PayloadDescriptorHandler(Opus::PayloadDescriptor* payloadDescriptor)
......
...@@ -167,25 +167,25 @@ namespace RTC ...@@ -167,25 +167,25 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP("<PayloadDescriptor>"); MS_DUMP("<VP8::PayloadDescriptor>");
MS_DUMP( MS_DUMP(
" i:%" PRIu8 "|l:%" PRIu8 "|t:%" PRIu8 "|k:%" PRIu8, this->i, this->l, this->t, this->k); " i:%" PRIu8 "|l:%" PRIu8 "|t:%" PRIu8 "|k:%" PRIu8, this->i, this->l, this->t, this->k);
MS_DUMP(" extended : %" PRIu8, this->extended); MS_DUMP(" extended: %" PRIu8, this->extended);
MS_DUMP(" nonReference : %" PRIu8, this->nonReference); MS_DUMP(" nonReference: %" PRIu8, this->nonReference);
MS_DUMP(" start : %" PRIu8, this->start); MS_DUMP(" start: %" PRIu8, this->start);
MS_DUMP(" partitionIndex : %" PRIu8, this->partitionIndex); MS_DUMP(" partitionIndex: %" PRIu8, this->partitionIndex);
MS_DUMP(" pictureId : %" PRIu16, this->pictureId); MS_DUMP(" pictureId: %" PRIu16, this->pictureId);
MS_DUMP(" tl0PictureIndex : %" PRIu8, this->tl0PictureIndex); MS_DUMP(" tl0PictureIndex: %" PRIu8, this->tl0PictureIndex);
MS_DUMP(" tlIndex : %" PRIu8, this->tlIndex); MS_DUMP(" tlIndex: %" PRIu8, this->tlIndex);
MS_DUMP(" y : %" PRIu8, this->y); MS_DUMP(" y: %" PRIu8, this->y);
MS_DUMP(" keyIndex : %" PRIu8, this->keyIndex); MS_DUMP(" keyIndex: %" PRIu8, this->keyIndex);
MS_DUMP(" isKeyFrame : %s", this->isKeyFrame ? "true" : "false"); MS_DUMP(" isKeyFrame: %s", this->isKeyFrame ? "true" : "false");
MS_DUMP(" hasPictureId : %s", this->hasPictureId ? "true" : "false"); MS_DUMP(" hasPictureId: %s", this->hasPictureId ? "true" : "false");
MS_DUMP(" hasOneBytePictureId : %s", this->hasOneBytePictureId ? "true" : "false"); MS_DUMP(" hasOneBytePictureId: %s", this->hasOneBytePictureId ? "true" : "false");
MS_DUMP(" hasTwoBytesPictureId : %s", this->hasTwoBytesPictureId ? "true" : "false"); MS_DUMP(" hasTwoBytesPictureId: %s", this->hasTwoBytesPictureId ? "true" : "false");
MS_DUMP(" hasTl0PictureIndex : %s", this->hasTl0PictureIndex ? "true" : "false"); MS_DUMP(" hasTl0PictureIndex: %s", this->hasTl0PictureIndex ? "true" : "false");
MS_DUMP(" hasTlIndex : %s", this->hasTlIndex ? "true" : "false"); MS_DUMP(" hasTlIndex: %s", this->hasTlIndex ? "true" : "false");
MS_DUMP("</PayloadDescriptor>"); MS_DUMP("</VP8::PayloadDescriptor>");
} }
void VP8::PayloadDescriptor::Encode(uint8_t* data, uint16_t pictureId, uint8_t tl0PictureIndex) const void VP8::PayloadDescriptor::Encode(uint8_t* data, uint16_t pictureId, uint8_t tl0PictureIndex) const
......
...@@ -146,7 +146,7 @@ namespace RTC ...@@ -146,7 +146,7 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP("<PayloadDescriptor>"); MS_DUMP("<VP9::PayloadDescriptor>");
MS_DUMP( MS_DUMP(
" i:%" PRIu8 "|p:%" PRIu8 "|l:%" PRIu8 "|f:%" PRIu8 "|b:%" PRIu8 "|e:%" PRIu8 "|v:%" PRIu8, " i:%" PRIu8 "|p:%" PRIu8 "|l:%" PRIu8 "|f:%" PRIu8 "|b:%" PRIu8 "|e:%" PRIu8 "|v:%" PRIu8,
this->i, this->i,
...@@ -156,20 +156,20 @@ namespace RTC ...@@ -156,20 +156,20 @@ namespace RTC
this->b, this->b,
this->e, this->e,
this->v); this->v);
MS_DUMP(" pictureId : %" PRIu16, this->pictureId); MS_DUMP(" pictureId: %" PRIu16, this->pictureId);
MS_DUMP(" slIndex : %" PRIu8, this->slIndex); MS_DUMP(" slIndex: %" PRIu8, this->slIndex);
MS_DUMP(" tlIndex : %" PRIu8, this->tlIndex); MS_DUMP(" tlIndex: %" PRIu8, this->tlIndex);
MS_DUMP(" tl0PictureIndex : %" PRIu8, this->tl0PictureIndex); MS_DUMP(" tl0PictureIndex: %" PRIu8, this->tl0PictureIndex);
MS_DUMP(" interLayerDependency : %" PRIu8, this->interLayerDependency); MS_DUMP(" interLayerDependency: %" PRIu8, this->interLayerDependency);
MS_DUMP(" switchingUpPoint : %" PRIu8, this->switchingUpPoint); MS_DUMP(" switchingUpPoint: %" PRIu8, this->switchingUpPoint);
MS_DUMP(" isKeyFrame : %s", this->isKeyFrame ? "true" : "false"); MS_DUMP(" isKeyFrame: %s", this->isKeyFrame ? "true" : "false");
MS_DUMP(" hasPictureId : %s", this->hasPictureId ? "true" : "false"); MS_DUMP(" hasPictureId: %s", this->hasPictureId ? "true" : "false");
MS_DUMP(" hasOneBytePictureId : %s", this->hasOneBytePictureId ? "true" : "false"); MS_DUMP(" hasOneBytePictureId: %s", this->hasOneBytePictureId ? "true" : "false");
MS_DUMP(" hasTwoBytesPictureId : %s", this->hasTwoBytesPictureId ? "true" : "false"); MS_DUMP(" hasTwoBytesPictureId: %s", this->hasTwoBytesPictureId ? "true" : "false");
MS_DUMP(" hasTl0PictureIndex : %s", this->hasTl0PictureIndex ? "true" : "false"); MS_DUMP(" hasTl0PictureIndex: %s", this->hasTl0PictureIndex ? "true" : "false");
MS_DUMP(" hasSlIndex : %s", this->hasSlIndex ? "true" : "false"); MS_DUMP(" hasSlIndex: %s", this->hasSlIndex ? "true" : "false");
MS_DUMP(" hasTlIndex : %s", this->hasTlIndex ? "true" : "false"); MS_DUMP(" hasTlIndex: %s", this->hasTlIndex ? "true" : "false");
MS_DUMP("</PayloadDescriptor>"); MS_DUMP("</VP9::PayloadDescriptor>");
} }
VP9::PayloadDescriptorHandler::PayloadDescriptorHandler(VP9::PayloadDescriptor* payloadDescriptor) VP9::PayloadDescriptorHandler::PayloadDescriptorHandler(VP9::PayloadDescriptor* payloadDescriptor)
......
...@@ -94,11 +94,11 @@ namespace RTC ...@@ -94,11 +94,11 @@ namespace RTC
MS_DUMP("<ByePacket>"); MS_DUMP("<ByePacket>");
for (auto ssrc : this->ssrcs) for (auto ssrc : this->ssrcs)
{ {
MS_DUMP(" ssrc : %" PRIu32, ssrc); MS_DUMP(" ssrc: %" PRIu32, ssrc);
} }
if (!this->reason.empty()) if (!this->reason.empty())
{ {
MS_DUMP(" reason : %s", this->reason.c_str()); MS_DUMP(" reason: %s", this->reason.c_str());
} }
MS_DUMP("</ByePacket>"); MS_DUMP("</ByePacket>");
} }
......
...@@ -87,9 +87,9 @@ namespace RTC ...@@ -87,9 +87,9 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
MS_DUMP(" sender ssrc : %" PRIu32, GetSenderSsrc()); MS_DUMP(" sender ssrc: %" PRIu32, GetSenderSsrc());
MS_DUMP(" media ssrc : %" PRIu32, GetMediaSsrc()); MS_DUMP(" media ssrc: %" PRIu32, GetMediaSsrc());
MS_DUMP(" size : %zu", this->GetSize()); MS_DUMP(" size: %zu", this->GetSize());
} }
/* Specialization for Ps class. */ /* Specialization for Ps class. */
......
...@@ -41,8 +41,8 @@ namespace RTC ...@@ -41,8 +41,8 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsFirItem>"); MS_DUMP("<FeedbackPsFirItem>");
MS_DUMP(" ssrc : %" PRIu32, this->GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, this->GetSsrc());
MS_DUMP(" sequence number : %" PRIu8, this->GetSequenceNumber()); MS_DUMP(" sequence number: %" PRIu8, this->GetSequenceNumber());
MS_DUMP("</FeedbackPsFirItem>"); MS_DUMP("</FeedbackPsFirItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -34,7 +34,7 @@ namespace RTC ...@@ -34,7 +34,7 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsLeiItem>"); MS_DUMP("<FeedbackPsLeiItem>");
MS_DUMP(" ssrc : %" PRIu32, this->GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, this->GetSsrc());
MS_DUMP("</FeedbackPsLeiItem>"); MS_DUMP("</FeedbackPsLeiItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -147,10 +147,10 @@ namespace RTC ...@@ -147,10 +147,10 @@ namespace RTC
MS_DUMP("<FeedbackPsRembPacket>"); MS_DUMP("<FeedbackPsRembPacket>");
FeedbackPsPacket::Dump(); FeedbackPsPacket::Dump();
MS_DUMP(" bitrate (bps) : %" PRIu64, this->bitrate); MS_DUMP(" bitrate (bps): %" PRIu64, this->bitrate);
for (auto ssrc : this->ssrcs) for (auto ssrc : this->ssrcs)
{ {
MS_DUMP(" ssrc : %" PRIu32, ssrc); MS_DUMP(" ssrc: %" PRIu32, ssrc);
} }
MS_DUMP("</FeedbackPsRembPacket>"); MS_DUMP("</FeedbackPsRembPacket>");
} }
......
...@@ -77,9 +77,9 @@ namespace RTC ...@@ -77,9 +77,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsRpsiItem>"); MS_DUMP("<FeedbackPsRpsiItem>");
MS_DUMP(" padding bits : %" PRIu8, this->header->paddingBits); MS_DUMP(" padding bits %" PRIu8, this->header->paddingBits);
MS_DUMP(" payload type : %" PRIu8, this->GetPayloadType()); MS_DUMP(" payload type: %" PRIu8, this->GetPayloadType());
MS_DUMP(" length : %zu", this->GetLength()); MS_DUMP(" length: %zu", this->GetLength());
MS_DUMP("</FeedbackPsRpsiItem>"); MS_DUMP("</FeedbackPsRpsiItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -39,9 +39,9 @@ namespace RTC ...@@ -39,9 +39,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsSliItem>"); MS_DUMP("<FeedbackPsSliItem>");
MS_DUMP(" first : %" PRIu16, this->first); MS_DUMP(" first: %" PRIu16, this->first);
MS_DUMP(" number : %" PRIu16, this->number); MS_DUMP(" number: %" PRIu16, this->number);
MS_DUMP(" picture id : %" PRIu8, this->pictureId); MS_DUMP(" picture id: %" PRIu8, this->pictureId);
MS_DUMP("</FeedbackPsSliItem>"); MS_DUMP("</FeedbackPsSliItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -41,9 +41,9 @@ namespace RTC ...@@ -41,9 +41,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsTstItem>"); MS_DUMP("<FeedbackPsTstItem>");
MS_DUMP(" ssrc : %" PRIu32, this->GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, this->GetSsrc());
MS_DUMP(" sequence number : %" PRIu32, this->GetSequenceNumber()); MS_DUMP(" sequence number: %" PRIu32, this->GetSequenceNumber());
MS_DUMP(" index : %" PRIu32, this->GetIndex()); MS_DUMP(" index: %" PRIu32, this->GetIndex());
MS_DUMP("</FeedbackPsTstItem>"); MS_DUMP("</FeedbackPsTstItem>");
} }
......
...@@ -51,10 +51,10 @@ namespace RTC ...@@ -51,10 +51,10 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackPsVbcmItem>"); MS_DUMP("<FeedbackPsVbcmItem>");
MS_DUMP(" ssrc : %" PRIu32, this->GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, this->GetSsrc());
MS_DUMP(" sequence number : %" PRIu8, this->GetSequenceNumber()); MS_DUMP(" sequence number: %" PRIu8, this->GetSequenceNumber());
MS_DUMP(" payload type : %" PRIu8, this->GetPayloadType()); MS_DUMP(" payload type: %" PRIu8, this->GetPayloadType());
MS_DUMP(" length : %" PRIu16, this->GetLength()); MS_DUMP(" length: %" PRIu16, this->GetLength());
MS_DUMP("</FeedbackPsVbcmItem>"); MS_DUMP("</FeedbackPsVbcmItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -24,13 +24,13 @@ namespace RTC ...@@ -24,13 +24,13 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackRtpEcnItem>"); MS_DUMP("<FeedbackRtpEcnItem>");
MS_DUMP(" sequence number : %" PRIu32, this->GetSequenceNumber()); MS_DUMP(" sequence number: %" PRIu32, this->GetSequenceNumber());
MS_DUMP(" ect0 counter : %" PRIu32, this->GetEct0Counter()); MS_DUMP(" ect0 counter: %" PRIu32, this->GetEct0Counter());
MS_DUMP(" ect1 counter : %" PRIu32, this->GetEct1Counter()); MS_DUMP(" ect1 counter: %" PRIu32, this->GetEct1Counter());
MS_DUMP(" ecn ce counter : %" PRIu16, this->GetEcnCeCounter()); MS_DUMP(" ecn ce counter: %" PRIu16, this->GetEcnCeCounter());
MS_DUMP(" not ect counter : %" PRIu16, this->GetNotEctCounter()); MS_DUMP(" not ect counter: %" PRIu16, this->GetNotEctCounter());
MS_DUMP(" lost packets : %" PRIu16, this->GetLostPackets()); MS_DUMP(" lost packets: %" PRIu16, this->GetLostPackets());
MS_DUMP(" duplicated packets : %" PRIu16, this->GetDuplicatedPackets()); MS_DUMP(" duplicated packets: %" PRIu16, this->GetDuplicatedPackets());
MS_DUMP("</FeedbackRtpEcnItem>"); MS_DUMP("</FeedbackRtpEcnItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -37,8 +37,8 @@ namespace RTC ...@@ -37,8 +37,8 @@ namespace RTC
std::bitset<16> nackBitset(this->GetLostPacketBitmask()); std::bitset<16> nackBitset(this->GetLostPacketBitmask());
MS_DUMP("<FeedbackRtpNackItem>"); MS_DUMP("<FeedbackRtpNackItem>");
MS_DUMP(" pid : %" PRIu16, this->GetPacketId()); MS_DUMP(" pid: %" PRIu16, this->GetPacketId());
MS_DUMP(" bpl : %s", nackBitset.to_string().c_str()); MS_DUMP(" bpl: %s", nackBitset.to_string().c_str());
MS_DUMP("</FeedbackRtpNackItem>"); MS_DUMP("</FeedbackRtpNackItem>");
} }
} // namespace RTCP } // namespace RTCP
......
...@@ -68,9 +68,9 @@ namespace RTC ...@@ -68,9 +68,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackRtpTmmbItem>"); MS_DUMP("<FeedbackRtpTmmbItem>");
MS_DUMP(" ssrc : %" PRIu32, this->GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, this->GetSsrc());
MS_DUMP(" bitrate : %" PRIu64, this->GetBitrate()); MS_DUMP(" bitrate: %" PRIu64, this->GetBitrate());
MS_DUMP(" overhead : %" PRIu16, this->GetOverhead()); MS_DUMP(" overhead: %" PRIu16, this->GetOverhead());
MS_DUMP("</FeedbackRtpTmmbItem>"); MS_DUMP("</FeedbackRtpTmmbItem>");
} }
......
...@@ -179,11 +179,11 @@ namespace RTC ...@@ -179,11 +179,11 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<FeedbackRtpTransportPacket>"); MS_DUMP("<FeedbackRtpTransportPacket>");
MS_DUMP(" base sequence : %" PRIu16, this->baseSequenceNumber); MS_DUMP(" base sequence: %" PRIu16, this->baseSequenceNumber);
MS_DUMP(" packet status count : %" PRIu16, this->packetStatusCount); MS_DUMP(" packet status count: %" PRIu16, this->packetStatusCount);
MS_DUMP(" reference time : %" PRIi32, this->referenceTime); MS_DUMP(" reference time: %" PRIi32, this->referenceTime);
MS_DUMP(" feedback packet count : %" PRIu8, this->feedbackPacketCount); MS_DUMP(" feedback packet count: %" PRIu8, this->feedbackPacketCount);
MS_DUMP(" size : %zu", GetSize()); MS_DUMP(" size: %zu", GetSize());
for (auto* chunk : this->chunks) for (auto* chunk : this->chunks)
{ {
...@@ -728,8 +728,8 @@ namespace RTC ...@@ -728,8 +728,8 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP(" <RunLengthChunk>"); MS_DUMP(" <RunLengthChunk>");
MS_DUMP(" status : %s", FeedbackRtpTransportPacket::status2String[this->status].c_str()); MS_DUMP(" status: %s", FeedbackRtpTransportPacket::status2String[this->status].c_str());
MS_DUMP(" count : %" PRIu16, this->count); MS_DUMP(" count: %" PRIu16, this->count);
MS_DUMP(" </RunLengthChunk>"); MS_DUMP(" </RunLengthChunk>");
} }
......
...@@ -37,13 +37,13 @@ namespace RTC ...@@ -37,13 +37,13 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<ReceiverReport>"); MS_DUMP("<ReceiverReport>");
MS_DUMP(" ssrc : %" PRIu32, GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, GetSsrc());
MS_DUMP(" fraction lost : %" PRIu8, GetFractionLost()); MS_DUMP(" fraction lost: %" PRIu8, GetFractionLost());
MS_DUMP(" total lost : %" PRIu32, GetTotalLost()); MS_DUMP(" total lost: %" PRIu32, GetTotalLost());
MS_DUMP(" last seq : %" PRIu32, GetLastSeq()); MS_DUMP(" last seq: %" PRIu32, GetLastSeq());
MS_DUMP(" jitter : %" PRIu32, GetJitter()); MS_DUMP(" jitter: %" PRIu32, GetJitter());
MS_DUMP(" lsr : %" PRIu32, GetLastSenderReport()); MS_DUMP(" lsr: %" PRIu32, GetLastSenderReport());
MS_DUMP(" dlsr : %" PRIu32, GetDelaySinceLastSenderReport()); MS_DUMP(" dlsr: %" PRIu32, GetDelaySinceLastSenderReport());
MS_DUMP("</ReceiverReport>"); MS_DUMP("</ReceiverReport>");
} }
......
...@@ -92,9 +92,9 @@ namespace RTC ...@@ -92,9 +92,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<SdesItem>"); MS_DUMP("<SdesItem>");
MS_DUMP(" type : %s", SdesItem::Type2String(this->GetType()).c_str()); MS_DUMP(" type: %s", SdesItem::Type2String(this->GetType()).c_str());
MS_DUMP(" length : %" PRIu8, this->header->length); MS_DUMP(" length: %" PRIu8, this->header->length);
MS_DUMP(" value : %.*s", this->header->length, this->header->value); MS_DUMP(" value: %.*s", this->header->length, this->header->value);
MS_DUMP("</SdesItem>"); MS_DUMP("</SdesItem>");
} }
...@@ -240,7 +240,7 @@ namespace RTC ...@@ -240,7 +240,7 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<SdesChunk>"); MS_DUMP("<SdesChunk>");
MS_DUMP(" ssrc : %" PRIu32, this->ssrc); MS_DUMP(" ssrc: %" PRIu32, this->ssrc);
for (auto* item : this->items) for (auto* item : this->items)
{ {
item->Dump(); item->Dump();
......
...@@ -36,12 +36,12 @@ namespace RTC ...@@ -36,12 +36,12 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<SenderReport>"); MS_DUMP("<SenderReport>");
MS_DUMP(" ssrc : %" PRIu32, GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, GetSsrc());
MS_DUMP(" ntp sec : %" PRIu32, GetNtpSec()); MS_DUMP(" ntp sec: %" PRIu32, GetNtpSec());
MS_DUMP(" ntp frac : %" PRIu32, GetNtpFrac()); MS_DUMP(" ntp frac: %" PRIu32, GetNtpFrac());
MS_DUMP(" rtp ts : %" PRIu32, GetRtpTs()); MS_DUMP(" rtp ts: %" PRIu32, GetRtpTs());
MS_DUMP(" packet count : %" PRIu32, GetPacketCount()); MS_DUMP(" packet count: %" PRIu32, GetPacketCount());
MS_DUMP(" octet count : %" PRIu32, GetOctetCount()); MS_DUMP(" octet count: %" PRIu32, GetOctetCount());
MS_DUMP("</SenderReport>"); MS_DUMP("</SenderReport>");
} }
......
...@@ -38,9 +38,9 @@ namespace RTC ...@@ -38,9 +38,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP(" <SsrcInfo>"); MS_DUMP(" <SsrcInfo>");
MS_DUMP(" ssrc : %" PRIu32, GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, GetSsrc());
MS_DUMP(" lrr : %" PRIu32, GetLastReceiverReport()); MS_DUMP(" lrr: %" PRIu32, GetLastReceiverReport());
MS_DUMP(" dlrr : %" PRIu32, GetDelaySinceLastReceiverReport()); MS_DUMP(" dlrr: %" PRIu32, GetDelaySinceLastReceiverReport());
MS_DUMP(" <SsrcInfo>"); MS_DUMP(" <SsrcInfo>");
} }
...@@ -117,10 +117,10 @@ namespace RTC ...@@ -117,10 +117,10 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<DelaySinceLastRr>"); MS_DUMP("<DelaySinceLastRr>");
MS_DUMP(" block type : %" PRIu8, (uint8_t)this->type); MS_DUMP(" block type: %" PRIu8, (uint8_t)this->type);
MS_DUMP(" reserved : 0"); MS_DUMP(" reserved: 0");
MS_DUMP( MS_DUMP(
" length : %" PRIu16, " length: %" PRIu16,
static_cast<uint16_t>((SsrcInfo::BodySize * this->ssrcInfos.size() / 4))); static_cast<uint16_t>((SsrcInfo::BodySize * this->ssrcInfos.size() / 4)));
for (auto* ssrcInfo : this->ssrcInfos) for (auto* ssrcInfo : this->ssrcInfos)
{ {
......
...@@ -35,11 +35,11 @@ namespace RTC ...@@ -35,11 +35,11 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<ReceiverReferenceTime>"); MS_DUMP("<ReceiverReferenceTime>");
MS_DUMP(" block type : %" PRIu8, static_cast<uint8_t>(this->type)); MS_DUMP(" block type: %" PRIu8, static_cast<uint8_t>(this->type));
MS_DUMP(" reserved : 0"); MS_DUMP(" reserved: 0");
MS_DUMP(" length : 2"); MS_DUMP(" length: 2");
MS_DUMP(" ntp sec : %" PRIu32, GetNtpSec()); MS_DUMP(" ntp sec: %" PRIu32, GetNtpSec());
MS_DUMP(" ntp frac : %" PRIu32, GetNtpFrac()); MS_DUMP(" ntp frac: %" PRIu32, GetNtpFrac());
MS_DUMP("</ReceiverReferenceTime>"); MS_DUMP("</ReceiverReferenceTime>");
} }
......
...@@ -166,21 +166,21 @@ namespace RTC ...@@ -166,21 +166,21 @@ namespace RTC
MS_TRACE(); MS_TRACE();
MS_DUMP("<RtpPacket>"); MS_DUMP("<RtpPacket>");
MS_DUMP(" padding : %s", this->header->padding ? "true" : "false"); MS_DUMP(" padding: %s", this->header->padding ? "true" : "false");
if (HasHeaderExtension()) if (HasHeaderExtension())
{ {
MS_DUMP( MS_DUMP(
" header extension : id:%" PRIu16 ", length:%zu", " header extension: id:%" PRIu16 ", length:%zu",
GetHeaderExtensionId(), GetHeaderExtensionId(),
GetHeaderExtensionLength()); GetHeaderExtensionLength());
} }
if (HasOneByteExtensions()) if (HasOneByteExtensions())
{ {
MS_DUMP(" RFC5285 ext style : One-Byte Header"); MS_DUMP(" RFC5285 ext style: One-Byte Header");
} }
if (HasTwoBytesExtensions()) if (HasTwoBytesExtensions())
{ {
MS_DUMP(" RFC5285 ext style : Two-Bytes Header"); MS_DUMP(" RFC5285 ext style: Two-Bytes Header");
} }
if (HasOneByteExtensions() || HasTwoBytesExtensions()) if (HasOneByteExtensions() || HasTwoBytesExtensions())
{ {
...@@ -213,7 +213,7 @@ namespace RTC ...@@ -213,7 +213,7 @@ namespace RTC
extIds.begin(), extIds.end() - 1, std::ostream_iterator<std::string>(extIdsStream, ",")); extIds.begin(), extIds.end() - 1, std::ostream_iterator<std::string>(extIdsStream, ","));
extIdsStream << extIds.back(); extIdsStream << extIds.back();
MS_DUMP(" RFC5285 ext ids : %s", extIdsStream.str().c_str()); MS_DUMP(" RFC5285 ext ids: %s", extIdsStream.str().c_str());
} }
} }
if (this->midExtensionId != 0u) if (this->midExtensionId != 0u)
...@@ -222,8 +222,7 @@ namespace RTC ...@@ -222,8 +222,7 @@ namespace RTC
if (ReadMid(mid)) if (ReadMid(mid))
{ {
MS_DUMP( MS_DUMP(" mid: extId:%" PRIu8 ", value:'%s'", this->midExtensionId, mid.c_str());
" mid : extId:%" PRIu8 ", value:'%s'", this->midExtensionId, mid.c_str());
} }
} }
if (this->ridExtensionId != 0u) if (this->ridExtensionId != 0u)
...@@ -232,8 +231,7 @@ namespace RTC ...@@ -232,8 +231,7 @@ namespace RTC
if (ReadRid(rid)) if (ReadRid(rid))
{ {
MS_DUMP( MS_DUMP(" rid: extId:%" PRIu8 ", value:'%s'", this->ridExtensionId, rid.c_str());
" rid : extId:%" PRIu8 ", value:'%s'", this->ridExtensionId, rid.c_str());
} }
} }
if (this->rridExtensionId != 0u) if (this->rridExtensionId != 0u)
...@@ -242,13 +240,12 @@ namespace RTC ...@@ -242,13 +240,12 @@ namespace RTC
if (ReadRid(rid)) if (ReadRid(rid))
{ {
MS_DUMP( MS_DUMP(" rrid: extId:%" PRIu8 ", value:'%s'", this->rridExtensionId, rid.c_str());
" rrid : extId:%" PRIu8 ", value:'%s'", this->rridExtensionId, rid.c_str());
} }
} }
if (this->absSendTimeExtensionId != 0u) if (this->absSendTimeExtensionId != 0u)
{ {
MS_DUMP(" absSendTime : extId:%" PRIu8, this->absSendTimeExtensionId); MS_DUMP(" absSendTime: extId:%" PRIu8, this->absSendTimeExtensionId);
} }
if (this->transportWideCc01ExtensionId != 0u) if (this->transportWideCc01ExtensionId != 0u)
{ {
...@@ -257,7 +254,7 @@ namespace RTC ...@@ -257,7 +254,7 @@ namespace RTC
if (ReadTransportWideCc01(wideSeqNumber)) if (ReadTransportWideCc01(wideSeqNumber))
{ {
MS_DUMP( MS_DUMP(
" transportWideCc01 : extId:%" PRIu8 ", value:%" PRIu16, " transportWideCc01: extId:%" PRIu8 ", value:%" PRIu16,
this->transportWideCc01ExtensionId, this->transportWideCc01ExtensionId,
wideSeqNumber); wideSeqNumber);
} }
...@@ -265,11 +262,11 @@ namespace RTC ...@@ -265,11 +262,11 @@ namespace RTC
// Remove once it becomes RFC. // Remove once it becomes RFC.
if (this->frameMarking07ExtensionId != 0u) if (this->frameMarking07ExtensionId != 0u)
{ {
MS_DUMP(" frameMarking07 : extId:%" PRIu8, this->frameMarking07ExtensionId); MS_DUMP(" frameMarking07: extId:%" PRIu8, this->frameMarking07ExtensionId);
} }
if (this->frameMarkingExtensionId != 0u) if (this->frameMarkingExtensionId != 0u)
{ {
MS_DUMP(" frameMarking : extId:%" PRIu8, this->frameMarkingExtensionId); MS_DUMP(" frameMarking: extId:%" PRIu8, this->frameMarkingExtensionId);
} }
if (this->ssrcAudioLevelExtensionId != 0u) if (this->ssrcAudioLevelExtensionId != 0u)
{ {
...@@ -279,7 +276,7 @@ namespace RTC ...@@ -279,7 +276,7 @@ namespace RTC
if (ReadSsrcAudioLevel(volume, voice)) if (ReadSsrcAudioLevel(volume, voice))
{ {
MS_DUMP( MS_DUMP(
" ssrcAudioLevel : extId:%" PRIu8 ", volume:%" PRIu8 ", voice:%s", " ssrcAudioLevel: extId:%" PRIu8 ", volume:%" PRIu8 ", voice:%s",
this->ssrcAudioLevelExtensionId, this->ssrcAudioLevelExtensionId,
volume, volume,
voice ? "true" : "false"); voice ? "true" : "false");
...@@ -294,27 +291,27 @@ namespace RTC ...@@ -294,27 +291,27 @@ namespace RTC
if (ReadVideoOrientation(camera, flip, rotation)) if (ReadVideoOrientation(camera, flip, rotation))
{ {
MS_DUMP( MS_DUMP(
" videoOrientation : extId:%" PRIu8 ", camera:%s, flip:%s, rotation:%" PRIu16, " videoOrientation: extId:%" PRIu8 ", camera:%s, flip:%s, rotation:%" PRIu16,
this->videoOrientationExtensionId, this->videoOrientationExtensionId,
camera ? "true" : "false", camera ? "true" : "false",
flip ? "true" : "false", flip ? "true" : "false",
rotation); rotation);
} }
} }
MS_DUMP(" csrc count : %" PRIu8, this->header->csrcCount); MS_DUMP(" csrc count: %" PRIu8, this->header->csrcCount);
MS_DUMP(" marker : %s", HasMarker() ? "true" : "false"); MS_DUMP(" marker: %s", HasMarker() ? "true" : "false");
MS_DUMP(" payload type : %" PRIu8, GetPayloadType()); MS_DUMP(" payload type: %" PRIu8, GetPayloadType());
MS_DUMP(" sequence number : %" PRIu16, GetSequenceNumber()); MS_DUMP(" sequence number: %" PRIu16, GetSequenceNumber());
MS_DUMP(" timestamp : %" PRIu32, GetTimestamp()); MS_DUMP(" timestamp: %" PRIu32, GetTimestamp());
MS_DUMP(" ssrc : %" PRIu32, GetSsrc()); MS_DUMP(" ssrc: %" PRIu32, GetSsrc());
MS_DUMP(" payload size : %zu bytes", GetPayloadLength()); MS_DUMP(" payload size: %zu bytes", GetPayloadLength());
if (this->header->padding != 0u) if (this->header->padding != 0u)
{ {
MS_DUMP(" padding size : %" PRIu8 " bytes", this->payloadPadding); MS_DUMP(" padding size: %" PRIu8 " bytes", this->payloadPadding);
} }
MS_DUMP(" packet size : %zu bytes", GetSize()); MS_DUMP(" packet size: %zu bytes", GetSize());
MS_DUMP(" spatial layer : %" PRIu8, GetSpatialLayer()); MS_DUMP(" spatial layer: %" PRIu8, GetSpatialLayer());
MS_DUMP(" temporal layer : %" PRIu8, GetTemporalLayer()); MS_DUMP(" temporal layer: %" PRIu8, GetTemporalLayer());
MS_DUMP("</RtpPacket>"); MS_DUMP("</RtpPacket>");
} }
......
...@@ -421,7 +421,7 @@ namespace RTC ...@@ -421,7 +421,7 @@ namespace RTC
} }
if (this->hasUseCandidate) if (this->hasUseCandidate)
{ {
MS_DUMP(" useCandidate"); MS_DUMP(" useCandidate: yes");
} }
if (!this->software.empty()) if (!this->software.empty())
{ {
...@@ -450,7 +450,7 @@ namespace RTC ...@@ -450,7 +450,7 @@ namespace RTC
} }
if (this->hasFingerprint) if (this->hasFingerprint)
{ {
MS_DUMP(" has fingerprint"); MS_DUMP(" fingerprint: yes");
} }
MS_DUMP("</StunPacket>"); MS_DUMP("</StunPacket>");
......
...@@ -74,22 +74,22 @@ namespace RTC ...@@ -74,22 +74,22 @@ namespace RTC
Utils::IP::GetAddressInfo(GetLocalAddress(), family, ip, port); Utils::IP::GetAddressInfo(GetLocalAddress(), family, ip, port);
MS_DUMP(" localIp : %s", ip.c_str()); MS_DUMP(" localIp: %s", ip.c_str());
MS_DUMP(" localPort : %" PRIu16, port); MS_DUMP(" localPort: %" PRIu16, port);
Utils::IP::GetAddressInfo(GetRemoteAddress(), family, ip, port); Utils::IP::GetAddressInfo(GetRemoteAddress(), family, ip, port);
MS_DUMP(" remoteIp : %s", ip.c_str()); MS_DUMP(" remoteIp: %s", ip.c_str());
MS_DUMP(" remotePort : %" PRIu16, port); MS_DUMP(" remotePort: %" PRIu16, port);
switch (GetProtocol()) switch (GetProtocol())
{ {
case Protocol::UDP: case Protocol::UDP:
MS_DUMP(" protocol : udp"); MS_DUMP(" protocol: udp");
break; break;
case Protocol::TCP: case Protocol::TCP:
MS_DUMP(" protocol : tcp"); MS_DUMP(" protocol: tcp");
break; break;
} }
......
...@@ -145,11 +145,11 @@ void TcpConnectionHandle::Close() ...@@ -145,11 +145,11 @@ void TcpConnectionHandle::Close()
void TcpConnectionHandle::Dump() const void TcpConnectionHandle::Dump() const
{ {
MS_DUMP("<TcpConnectionHandle>"); MS_DUMP("<TcpConnectionHandle>");
MS_DUMP(" localIp : %s", this->localIp.c_str()); MS_DUMP(" localIp: %s", this->localIp.c_str());
MS_DUMP(" localPort : %" PRIu16, static_cast<uint16_t>(this->localPort)); MS_DUMP(" localPort: %" PRIu16, static_cast<uint16_t>(this->localPort));
MS_DUMP(" remoteIp : %s", this->peerIp.c_str()); MS_DUMP(" remoteIp: %s", this->peerIp.c_str());
MS_DUMP(" remotePort : %" PRIu16, static_cast<uint16_t>(this->peerPort)); MS_DUMP(" remotePort: %" PRIu16, static_cast<uint16_t>(this->peerPort));
MS_DUMP(" closed : %s", !this->closed ? "open" : "closed"); MS_DUMP(" closed: %s", this->closed ? "yes" : "no");
MS_DUMP("</TcpConnectionHandle>"); MS_DUMP("</TcpConnectionHandle>");
} }
......
...@@ -96,12 +96,10 @@ void TcpServerHandle::Close() ...@@ -96,12 +96,10 @@ void TcpServerHandle::Close()
void TcpServerHandle::Dump() const void TcpServerHandle::Dump() const
{ {
MS_DUMP("<TcpServerHandle>"); MS_DUMP("<TcpServerHandle>");
MS_DUMP( MS_DUMP(" localIp: %s", this->localIp.c_str());
" [TCP, local:%s :%" PRIu16 ", status:%s, connections:%zu]", MS_DUMP(" localPort: %" PRIu16, static_cast<uint16_t>(this->localPort));
this->localIp.c_str(), MS_DUMP(" num connections: %zu", this->connections.size());
static_cast<uint16_t>(this->localPort), MS_DUMP(" closed: %s", this->closed ? "yes" : "no");
(!this->closed) ? "open" : "closed",
this->connections.size());
MS_DUMP("</TcpServerHandle>"); MS_DUMP("</TcpServerHandle>");
} }
......
...@@ -135,9 +135,9 @@ void UdpSocketHandle::Close() ...@@ -135,9 +135,9 @@ void UdpSocketHandle::Close()
void UdpSocketHandle::Dump() const void UdpSocketHandle::Dump() const
{ {
MS_DUMP("<UdpSocketHandle>"); MS_DUMP("<UdpSocketHandle>");
MS_DUMP(" localIp : %s", this->localIp.c_str()); MS_DUMP(" localIp: %s", this->localIp.c_str());
MS_DUMP(" localPort : %" PRIu16, static_cast<uint16_t>(this->localPort)); MS_DUMP(" localPort: %" PRIu16, static_cast<uint16_t>(this->localPort));
MS_DUMP(" closed : %s", !this->closed ? "open" : "closed"); MS_DUMP(" closed: %s", this->closed ? "yes" : "no");
MS_DUMP("</UdpSocketHandle>"); MS_DUMP("</UdpSocketHandle>");
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论