summaryrefslogtreecommitdiffstats
path: root/src/net/pvsLocalhostCommunicator.cpp
diff options
context:
space:
mode:
authorJohann Latocha2010-09-01 01:02:39 +0200
committerJohann Latocha2010-09-01 01:02:39 +0200
commitf6fca1c3c5279c820be3860b0074831f920219d6 (patch)
tree66c9568114734b8a4e7fa55c1e1626f2ccefa243 /src/net/pvsLocalhostCommunicator.cpp
parentMissing return statement (diff)
downloadpvs-f6fca1c3c5279c820be3860b0074831f920219d6.tar.gz
pvs-f6fca1c3c5279c820be3860b0074831f920219d6.tar.xz
pvs-f6fca1c3c5279c820be3860b0074831f920219d6.zip
All printf() replaced with qDebug()
Diffstat (limited to 'src/net/pvsLocalhostCommunicator.cpp')
-rw-r--r--src/net/pvsLocalhostCommunicator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/pvsLocalhostCommunicator.cpp b/src/net/pvsLocalhostCommunicator.cpp
index 199b39c..20783bb 100644
--- a/src/net/pvsLocalhostCommunicator.cpp
+++ b/src/net/pvsLocalhostCommunicator.cpp
@@ -83,7 +83,7 @@ void PVSLocalhostCommunicator::sendCommand(QString ident, QString cmd)
int len;
sender.getBinaryData(data, len);
QByteArray qba(data, len);
- printf("Sending %d bytes to daemon...\n", qba.length());
+ qDebug("Sending %d bytes to daemon...", qba.length());
qint64 result = _sock->writeDatagram(qba, localhost, localport);
_sock->waitForBytesWritten(100);
@@ -92,11 +92,11 @@ void PVSLocalhostCommunicator::sendCommand(QString ident, QString cmd)
{
if (result == -1)
{
- printf("Error sending PVSMsg to daemon: %s\n", _sock->errorString().toUtf8().data());
+ qDebug("Error sending PVSMsg to daemon: %s", qPrintable(_sock->errorString()));
}
else
{
- printf("Sent PVSMsg was incomplete.\n");
+ qDebug("Sent PVSMsg was incomplete.");
}
stop();
}