diff options
| author | Johann Latocha | 2010-09-01 01:02:39 +0200 |
|---|---|---|
| committer | Johann Latocha | 2010-09-01 01:02:39 +0200 |
| commit | f6fca1c3c5279c820be3860b0074831f920219d6 (patch) | |
| tree | 66c9568114734b8a4e7fa55c1e1626f2ccefa243 /src/net/SslServer.cpp | |
| parent | Missing return statement (diff) | |
| download | pvs-f6fca1c3c5279c820be3860b0074831f920219d6.tar.gz pvs-f6fca1c3c5279c820be3860b0074831f920219d6.tar.xz pvs-f6fca1c3c5279c820be3860b0074831f920219d6.zip | |
All printf() replaced with qDebug()
Diffstat (limited to 'src/net/SslServer.cpp')
| -rw-r--r-- | src/net/SslServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/SslServer.cpp b/src/net/SslServer.cpp index e353e0a..9940a61 100644 --- a/src/net/SslServer.cpp +++ b/src/net/SslServer.cpp @@ -59,7 +59,7 @@ void SslServer::incomingConnection(int socketDescriptor) void SslServer :: sslErrors ( const QList<QSslError> & errors ) { - printf("FIXME: SSL ERRORS on SERVER: %s\n", errors.begin()->errorString().toUtf8().data()); + qDebug("FIXME: SSL ERRORS on SERVER: %s", qPrintable(errors.begin()->errorString())); } void SslServer::timerEvent (QTimerEvent* event) @@ -98,7 +98,7 @@ bool SslServer::hasPendingConnections() { for (QList<QSslSocket*>::iterator it = _pending.begin(); it != _pending.end(); it++) { - printf("State: %d - Encrypted: %d\n", (int)(*it)->state(), (*it)->isEncrypted()); + qDebug("State: %d - Encrypted: %d", (int)(*it)->state(), (*it)->isEncrypted()); if ((*it)->state() == QAbstractSocket::ConnectedState && (*it)->isEncrypted()) return true; } return false; |
