diff options
Diffstat (limited to 'src/windeployqt/utils.h')
-rw-r--r-- | src/windeployqt/utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/windeployqt/utils.h b/src/windeployqt/utils.h index 7195b4a2e..f930ee1cc 100644 --- a/src/windeployqt/utils.h +++ b/src/windeployqt/utils.h @@ -112,7 +112,7 @@ bool updateFile(const QString &sourceFileName, const QFileInfo sourceFileInfo(sourceFileName); const QString targetFileName = targetDirectory + QLatin1Char('/') + sourceFileInfo.fileName(); if (optVerboseLevel > 1) - std::fprintf(stderr, "Checking %s, %s\n", qPrintable(sourceFileName), qPrintable(targetFileName)); + std::printf("Checking %s, %s\n", qPrintable(sourceFileName), qPrintable(targetFileName)); if (!sourceFileInfo.exists()) { *errorMessage = QString::fromLatin1("%1 does not exist.").arg(QDir::toNativeSeparators(sourceFileName)); @@ -162,7 +162,8 @@ bool updateFile(const QString &sourceFileName, } // Not a directory. } else { // exists. QDir d(targetDirectory); - std::printf("Creating %s.\n", qPrintable(targetFileName)); + if (optVerboseLevel) + std::printf("Creating %s.\n", qPrintable(targetFileName)); if (!d.mkdir(sourceFileInfo.fileName())) { *errorMessage = QString::fromLatin1("Cannot create directory %1 under %2.") .arg(sourceFileInfo.fileName(), QDir::toNativeSeparators(targetDirectory)); |