From 6f3bdb4c3e35978dd82a274b66403a354b25bfa3 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 29 Sep 2021 01:45:46 +0300 Subject: [PATCH] build fix for the case when QPROCESS_DEBUG is defined Signed-off-by: Ivailo Monev --- src/core/io/qprocess_unix.cpp | 2 +- src/core/kernel/qeventdispatcher_unix.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/io/qprocess_unix.cpp b/src/core/io/qprocess_unix.cpp index b3926678b..4e90fb2db 100644 --- a/src/core/io/qprocess_unix.cpp +++ b/src/core/io/qprocess_unix.cpp @@ -216,7 +216,7 @@ void QProcessManager::catchDeadChildren() qt_safe_write((*it)->d_func()->deathPipe[1], "", 1); #if defined (QPROCESS_DEBUG) - qDebug() << "QProcessManager::run() sending death notice to" << process; + qDebug() << "QProcessManager::run() sending death notice to" << (*it); #endif ++it; } diff --git a/src/core/kernel/qeventdispatcher_unix.cpp b/src/core/kernel/qeventdispatcher_unix.cpp index 30bce684d..7c41840ff 100644 --- a/src/core/kernel/qeventdispatcher_unix.cpp +++ b/src/core/kernel/qeventdispatcher_unix.cpp @@ -112,7 +112,7 @@ int QEventDispatcherUNIXPrivate::doSelect(QEventLoop::ProcessEventsFlags flags, if (ret == -1 && (fds.revents & POLLNVAL) != 0) { // disable the invalid socket notifier qWarning("QSocketNotifier: Invalid socket %d and type '%s', disabling...", - sn->fd, sockTypeString[type]); + sn->fd, sockTypeString[type]); sn->obj->setEnabled(false); } } -- 2.11.0