QNativeSocketEngine: fix build in debug mode under Windows
Change-Id: Id9b42f3d40b82ae6a8d581b0fbf6fd0b2ae589aa Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
This commit is contained in:
parent
8badbd5040
commit
9af2cccc59
@ -1177,7 +1177,7 @@ qint64 QNativeSocketEnginePrivate::nativePendingDatagramSize() const
|
||||
#endif
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativePendingDatagramSize() == %li", ret);
|
||||
qDebug("QNativeSocketEnginePrivate::nativePendingDatagramSize() == %lli", ret);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
@ -1283,10 +1283,11 @@ qint64 QNativeSocketEnginePrivate::nativeReceiveDatagram(char *data, qint64 maxL
|
||||
}
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativeReceiveDatagram(%p \"%s\", %li, %s, %i) == %li",
|
||||
bool printSender = (ret != -1 && (options & QNativeSocketEngine::WantDatagramSender) != 0);
|
||||
qDebug("QNativeSocketEnginePrivate::nativeReceiveDatagram(%p \"%s\", %lli, %s, %i) == %lli",
|
||||
data, qt_prettyDebug(data, qMin<qint64>(ret, 16), ret).data(), maxLength,
|
||||
address ? address->toString().toLatin1().constData() : "(nil)",
|
||||
port ? *port : 0, ret);
|
||||
printSender ? header->senderAddress.toString().toLatin1().constData() : "(unknown)",
|
||||
printSender ? header->senderPort : 0, ret);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
@ -1398,9 +1399,10 @@ qint64 QNativeSocketEnginePrivate::nativeSendDatagram(const char *data, qint64 l
|
||||
}
|
||||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
qDebug("QNativeSocketEnginePrivate::nativeSendDatagram(%p \"%s\", %li, \"%s\", %i) == %li", data,
|
||||
qt_prettyDebug(data, qMin<qint64>(len, 16), len).data(), 0, address.toString().toLatin1().constData(),
|
||||
port, ret);
|
||||
qDebug("QNativeSocketEnginePrivate::nativeSendDatagram(%p \"%s\", %lli, \"%s\", %i) == %lli", data,
|
||||
qt_prettyDebug(data, qMin<qint64>(len, 16), len).data(), len,
|
||||
header.destinationAddress.toString().toLatin1().constData(),
|
||||
header.destinationPort, ret);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user