summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-10-24 22:32:45 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-11-28 16:34:32 +0000
commit678a4273a30e9e073dabe684ba21f18faf426e15 (patch)
treeeaa864cd46f82fb96a80815e380ca7933fdb6f7f /src/plugins/bearer
parent40a8302115d6bcc171b314c7d3b4e574b08b66b0 (diff)
QtBase: combine adjacent qDebug()/qCritical() lines
For qDebug() and qWarning(), this is just an optimization. For qCritical(), which can be fatal, the old code was just wrong. Change-Id: I6d8ab1d7531d766cd41b49569dc0fd4420ecab8b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/bearer')
-rw-r--r--src/plugins/bearer/nla/qnlaengine.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/plugins/bearer/nla/qnlaengine.cpp b/src/plugins/bearer/nla/qnlaengine.cpp
index 3680eb7305..cc65364a02 100644
--- a/src/plugins/bearer/nla/qnlaengine.cpp
+++ b/src/plugins/bearer/nla/qnlaengine.cpp
@@ -69,39 +69,39 @@ QWindowsSockInit2::~QWindowsSockInit2()
#ifdef BEARER_MANAGEMENT_DEBUG
static void printBlob(NLA_BLOB *blob)
{
- qDebug() << "==== BEGIN NLA_BLOB ====";
+ qDebug() << "==== BEGIN NLA_BLOB ====" << endl
- qDebug() << "type:" << blob->header.type;
- qDebug() << "size:" << blob->header.dwSize;
- qDebug() << "next offset:" << blob->header.nextOffset;
+ << "type:" << blob->header.type << endl
+ << "size:" << blob->header.dwSize << endl
+ << "next offset:" << blob->header.nextOffset;
switch (blob->header.type) {
case NLA_RAW_DATA:
- qDebug() << "Raw Data";
- qDebug() << '\t' << blob->data.rawData;
+ qDebug() << "Raw Data" << endl
+ << '\t' << blob->data.rawData;
break;
case NLA_INTERFACE:
- qDebug() << "Interface";
- qDebug() << "\ttype:" << blob->data.interfaceData.dwType;
- qDebug() << "\tspeed:" << blob->data.interfaceData.dwSpeed;
- qDebug() << "\tadapter:" << blob->data.interfaceData.adapterName;
+ qDebug() << "Interface" << endl
+ << "\ttype:" << blob->data.interfaceData.dwType << endl
+ << "\tspeed:" << blob->data.interfaceData.dwSpeed << endl
+ << "\tadapter:" << blob->data.interfaceData.adapterName;
break;
case NLA_802_1X_LOCATION:
- qDebug() << "802.1x Location";
- qDebug() << '\t' << blob->data.locationData.information;
+ qDebug() << "802.1x Location" << endl
+ << '\t' << blob->data.locationData.information;
break;
case NLA_CONNECTIVITY:
- qDebug() << "Connectivity";
- qDebug() << "\ttype:" << blob->data.connectivity.type;
- qDebug() << "\tinternet:" << blob->data.connectivity.internet;
+ qDebug() << "Connectivity" << endl
+ << "\ttype:" << blob->data.connectivity.type << endl
+ << "\tinternet:" << blob->data.connectivity.internet;
break;
case NLA_ICS:
- qDebug() << "ICS";
- qDebug() << "\tspeed:" << blob->data.ICS.remote.speed;
- qDebug() << "\ttype:" << blob->data.ICS.remote.type;
- qDebug() << "\tstate:" << blob->data.ICS.remote.state;
- qDebug() << "\tmachine name:" << blob->data.ICS.remote.machineName;
- qDebug() << "\tshared adapter name:" << blob->data.ICS.remote.sharedAdapterName;
+ qDebug() << "ICS" << endl
+ << "\tspeed:" << blob->data.ICS.remote.speed << endl
+ << "\ttype:" << blob->data.ICS.remote.type << endl
+ << "\tstate:" << blob->data.ICS.remote.state << endl
+ << "\tmachine name:" << blob->data.ICS.remote.machineName << endl
+ << "\tshared adapter name:" << blob->data.ICS.remote.sharedAdapterName;
break;
default:
qDebug() << "UNKNOWN BLOB TYPE";