Fix compile error when enabling the QHOSTINFO_DEBUG define

Change-Id: Id82b3aad3b2951e6d0dee57ac993535930db31fc
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
Andy Shaw 2014-02-26 08:50:40 +01:00 committed by The Qt Project
parent 24f1025663
commit 5ce87f0782

View File

@ -134,8 +134,8 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName)
QHostInfo results;
#if defined(QHOSTINFO_DEBUG)
qDebug("QHostInfoAgent::fromName(%p): looking up \"%s\" (IPv6 support is %s)",
this, hostName.toLatin1().constData(),
qDebug("QHostInfoAgent::fromName(): looking up \"%s\" (IPv6 support is %s)",
hostName.toLatin1().constData(),
(local_getaddrinfo && local_freeaddrinfo) ? "enabled" : "disabled");
#endif
@ -248,8 +248,8 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName)
#if defined(QHOSTINFO_DEBUG)
if (results.error() != QHostInfo::NoError) {
qDebug("QHostInfoAgent::run(%p): error (%s)",
this, results.errorString().toLatin1().constData());
qDebug("QHostInfoAgent::run(): error (%s)",
results.errorString().toLatin1().constData());
} else {
QString tmp;
QList<QHostAddress> addresses = results.addresses();
@ -257,8 +257,8 @@ QHostInfo QHostInfoAgent::fromName(const QString &hostName)
if (i != 0) tmp += ", ";
tmp += addresses.at(i).toString();
}
qDebug("QHostInfoAgent::run(%p): found %i entries: {%s}",
this, addresses.count(), tmp.toLatin1().constData());
qDebug("QHostInfoAgent::run(): found %i entries: {%s}",
addresses.count(), tmp.toLatin1().constData());
}
#endif
return results;