Fix debug format string in windows socket engine
%l has no meaning, should be %li according to the arguments. Change-Id: Ife9ec524109e021ad723865445e80b6bad51a5c6 Reviewed-by: Richard J. Moore <rich@kde.org>bb10
parent
064a2316b0
commit
f605e269dd
|
|
@ -1335,10 +1335,10 @@ qint64 QNativeSocketEnginePrivate::nativeRead(char *data, qint64 maxLength)
|
|||
|
||||
#if defined (QNATIVESOCKETENGINE_DEBUG)
|
||||
if (ret != -2) {
|
||||
qDebug("QNativeSocketEnginePrivate::nativeRead(%p \"%s\", %l) == %li",
|
||||
qDebug("QNativeSocketEnginePrivate::nativeRead(%p \"%s\", %li) == %li",
|
||||
data, qt_prettyDebug(data, qMin((int)bytesRead, 16), (int)bytesRead).data(), (int)maxLength, (int)ret);
|
||||
} else {
|
||||
qDebug("QNativeSocketEnginePrivate::nativeRead(%p, %l) == -2 (WOULD BLOCK)",
|
||||
qDebug("QNativeSocketEnginePrivate::nativeRead(%p, %li) == -2 (WOULD BLOCK)",
|
||||
data, int(maxLength));
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue