mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +02:00
cleanup spacing in debug
This commit is contained in:
parent
fc55c3efac
commit
dff59f386a
2 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ bool HifiSockAddr::operator==(const HifiSockAddr &rhsSockAddr) const {
|
|||
|
||||
QDebug operator<<(QDebug debug, const HifiSockAddr &hifiSockAddr) {
|
||||
debug.nospace() << hifiSockAddr._address.toString().toLocal8Bit().constData() << ":" << hifiSockAddr._port;
|
||||
return debug;
|
||||
return debug.space();
|
||||
}
|
||||
|
||||
quint32 getHostOrderLocalAddress() {
|
||||
|
|
|
@ -20,7 +20,7 @@ PACKET_VERSION versionForPacketType(PACKET_TYPE type) {
|
|||
return 2;
|
||||
|
||||
case PACKET_TYPE_HEAD_DATA:
|
||||
return 16;
|
||||
return 17;
|
||||
|
||||
case PACKET_TYPE_OCTREE_STATS:
|
||||
return 2;
|
||||
|
@ -70,9 +70,9 @@ bool packetVersionMatch(unsigned char* packetHeader, const HifiSockAddr& senderS
|
|||
if (packetHeader[1] == versionForPacketType(packetHeader[0]) || packetHeader[0] == PACKET_TYPE_STUN_RESPONSE) {
|
||||
return true;
|
||||
} else {
|
||||
qDebug() << "Packet version mismatch on" << packetHeader[0] << ". Sender"
|
||||
<< senderSockAddr << "sent" << packetHeader[1] << "but" << versionForPacketType(packetHeader[0])
|
||||
<< "expected.";
|
||||
qDebug() << "Packet mismatch on" << packetHeader[0] << "- Sender"
|
||||
<< senderSockAddr << "sent" << qPrintable(QString::number(packetHeader[1])) << "but"
|
||||
<< qPrintable(QString::number(versionForPacketType(packetHeader[0]))) << "expected.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue