Skip to content

Commit 229192c

Browse files
gou4shi1maxsharabayko
authored andcommitted
[core] Added a trailing space in CONID()
1 parent 43a7c32 commit 229192c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

srtcore/api.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1946,9 +1946,9 @@ void srt::CUDTUnited::deleteGroup_LOCKED(CUDTGroup* g)
19461946

19471947
int srt::CUDTUnited::close(CUDTSocket* s)
19481948
{
1949-
HLOGC(smlog.Debug, log << s->core().CONID() << " CLOSE. Acquiring control lock");
1949+
HLOGC(smlog.Debug, log << s->core().CONID() << "CLOSE. Acquiring control lock");
19501950
ScopedLock socket_cg(s->m_ControlLock);
1951-
HLOGC(smlog.Debug, log << s->core().CONID() << " CLOSING (removing from listening, closing CUDT)");
1951+
HLOGC(smlog.Debug, log << s->core().CONID() << "CLOSING (removing from listening, closing CUDT)");
19521952

19531953
const bool synch_close_snd = s->core().m_config.bSynSending;
19541954

@@ -1971,7 +1971,7 @@ int srt::CUDTUnited::close(CUDTSocket* s)
19711971
// be unable to bind to this port that the about-to-delete listener
19721972
// is currently occupying (due to blocked slot in the RcvQueue).
19731973

1974-
HLOGC(smlog.Debug, log << s->core().CONID() << " CLOSING (removing listener immediately)");
1974+
HLOGC(smlog.Debug, log << s->core().CONID() << "CLOSING (removing listener immediately)");
19751975
s->core().notListening();
19761976

19771977
// broadcast all "accept" waiting
@@ -1989,7 +1989,7 @@ int srt::CUDTUnited::close(CUDTSocket* s)
19891989
// synchronize with garbage collection.
19901990
HLOGC(smlog.Debug,
19911991
log << "@" << u << "U::close done. GLOBAL CLOSE: " << s->core().CONID()
1992-
<< ". Acquiring GLOBAL control lock");
1992+
<< "Acquiring GLOBAL control lock");
19931993
ScopedLock manager_cg(m_GlobControlLock);
19941994
// since "s" is located before m_GlobControlLock, locate it again in case
19951995
// it became invalid

srtcore/core.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6094,13 +6094,13 @@ bool srt::CUDT::closeInternal()
60946094
// that has m_bBroken == false or m_bConnected == true.
60956095
// If it is intended to forcefully close the socket, make sure
60966096
// that it's in response to a broken connection.
6097-
HLOGC(smlog.Debug, log << CONID() << " - closing socket:");
6097+
HLOGC(smlog.Debug, log << CONID() << "closing socket");
60986098

60996099
if (m_config.Linger.l_onoff != 0)
61006100
{
61016101
const steady_clock::time_point entertime = steady_clock::now();
61026102

6103-
HLOGC(smlog.Debug, log << CONID() << " ... (linger)");
6103+
HLOGC(smlog.Debug, log << CONID() << "... (linger)");
61046104
while (!m_bBroken && m_bConnected && (m_pSndBuffer->getCurrBufSize() > 0) &&
61056105
(steady_clock::now() - entertime < seconds_from(m_config.Linger.l_linger)))
61066106
{
@@ -7726,7 +7726,7 @@ void srt::CUDT::ackDataUpTo(int32_t ack)
77267726
if (acksize < 0)
77277727
{
77287728
LOGC(xtlog.Error,
7729-
log << CONID() << " ackDataUpTo: IPE: invalid ACK from %" << m_iRcvLastSkipAck << " to %" << ack << " ("
7729+
log << CONID() << "ackDataUpTo: IPE: invalid ACK from %" << m_iRcvLastSkipAck << " to %" << ack << " ("
77307730
<< acksize << " packets)");
77317731
return;
77327732
}
@@ -7772,7 +7772,7 @@ void srt::CUDT::dropToGroupRecvBase() {
77727772
if (cnt > 0)
77737773
{
77747774
HLOGC(grlog.Debug,
7775-
log << "dropToGroupRecvBase: " << CONID() << " dropped " << cnt << " packets before ACK: group_recv_base="
7775+
log << "dropToGroupRecvBase: " << CONID() << "dropped " << cnt << " packets before ACK: group_recv_base="
77767776
<< group_recv_base << " m_iRcvLastSkipAck=" << m_iRcvLastSkipAck
77777777
<< " m_iRcvCurrSeqNo=" << m_iRcvCurrSeqNo << " m_bTsbPd=" << m_bTsbPd);
77787778
}
@@ -8008,7 +8008,7 @@ int srt::CUDT::sendCtrlAck(CPacket& ctrlpkt, int size)
80088008
ctrlpkt.pack(UMSG_ACK, NULL, &ack, size);
80098009
ctrlpkt.m_iID = m_PeerID;
80108010
nbsent = m_pSndQueue->sendto(m_PeerAddr, ctrlpkt);
8011-
DebugAck("sendCtrl(lite):" + CONID(), local_prevack, ack);
8011+
DebugAck("sendCtrl(lite): " + CONID(), local_prevack, ack);
80128012
return nbsent;
80138013
}
80148014

srtcore/core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class CUDT
288288
{
289289
#if ENABLE_LOGGING
290290
std::ostringstream os;
291-
os << "@" << m_SocketID << ":";
291+
os << "@" << m_SocketID << ": ";
292292
return os.str();
293293
#else
294294
return "";

0 commit comments

Comments
 (0)