summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@jollamobile.com>2014-08-03 22:51:18 +0200
committerRobin Burchell <robin+qt@viroteck.net>2014-08-04 05:05:50 +0200
commite9782fee8f8772c54aaadc337e101fba0c9709fc (patch)
tree03af91444a7f49a73d066682497df1fb0fe0f1b2 /src/network
parent7ff4621100b3df7ba9b336ac60204da4b548e642 (diff)
QNativeSocketEngine: use stream-style qDebug to fix a warning about FD types.
FD types differ depending on the platform, so using the stream form is the easiest way to make this work. Change-Id: I00b1a303f3d865fe5e89ba97bd438c51c6cd8f09 Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/socket/qnativesocketengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/socket/qnativesocketengine.cpp b/src/network/socket/qnativesocketengine.cpp
index 6bf8626f97..fc2bd18793 100644
--- a/src/network/socket/qnativesocketengine.cpp
+++ b/src/network/socket/qnativesocketengine.cpp
@@ -430,8 +430,8 @@ bool QNativeSocketEngine::initialize(qintptr socketDescriptor, QAbstractSocket::
// determine socket type and protocol
if (!d->fetchConnectionParameters()) {
#if defined (QNATIVESOCKETENGINE_DEBUG)
- qDebug("QNativeSocketEngine::initialize(socketDescriptor == %i) failed: %s",
- socketDescriptor, d->socketErrorString.toLatin1().constData());
+ qDebug() << "QNativeSocketEngine::initialize(socketDescriptor) failed:"
+ << socketDescriptor << d->socketErrorString;
#endif
d->socketDescriptor = -1;
return false;