QProcess/Win: Fix build in debug mode

Suppress a compile warning:

io\qprocess_win.cpp: 623:101: error: format '%d' expects argument of ...

Pick-to: 5.15
Change-Id: I9ea94ddfc21afea5d1a78e264507a36435cce063
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Alex Trotsenko 2020-06-04 18:18:29 +03:00
parent 8a95404905
commit ad117c5444
2 changed files with 4 additions and 3 deletions

View File

@ -1018,8 +1018,8 @@ bool QProcessPrivate::tryReadFromChannel(Channel *channel)
return false;
}
#if defined QPROCESS_DEBUG
qDebug("QProcessPrivate::tryReadFromChannel(%d), read %d bytes from the process' output",
int(channel - &stdinChannel), int(readBytes));
qDebug("QProcessPrivate::tryReadFromChannel(%d), read %lld bytes from the process' output",
int(channel - &stdinChannel), readBytes);
#endif
if (channel->closed) {

View File

@ -620,7 +620,8 @@ qint64 QProcessPrivate::bytesAvailableInChannel(const Channel *channel) const
DWORD bytesAvail = channel->reader->bytesAvailable();
#if defined QPROCESS_DEBUG
qDebug("QProcessPrivate::bytesAvailableInChannel(%d) == %d", channel - &stdinChannel, bytesAvail);
qDebug("QProcessPrivate::bytesAvailableInChannel(%d) == %lld",
int(channel - &stdinChannel), qint64(bytesAvail));
#endif
return bytesAvail;
}