summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/largefile/tst_largefile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/largefile/tst_largefile.cpp')
-rw-r--r--tests/auto/corelib/io/largefile/tst_largefile.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/auto/corelib/io/largefile/tst_largefile.cpp b/tests/auto/corelib/io/largefile/tst_largefile.cpp
index fcc0a31763..d05c5bca9f 100644
--- a/tests/auto/corelib/io/largefile/tst_largefile.cpp
+++ b/tests/auto/corelib/io/largefile/tst_largefile.cpp
@@ -299,7 +299,7 @@ void tst_LargeFile::createSparseFile()
DWORD bytes;
if (!::DeviceIoControl(handle, FSCTL_SET_SPARSE, NULL, 0, NULL, 0,
&bytes, NULL)) {
- QWARN("Unable to set test file as sparse. "
+ qWarning("Unable to set test file as sparse. "
"Limiting test file to 16MiB.");
maxSizeBits = 24;
}
@@ -347,11 +347,10 @@ void tst_LargeFile::fillFileSparsely()
{
if (failed) {
this_->maxSizeBits = lastKnownGoodIndex;
- QWARN( qPrintable(
- QString("QFile::error %1: '%2'. Maximum size bits reset to %3.")
- .arg(this_->largeFile.error())
- .arg(this_->largeFile.errorString())
- .arg(this_->maxSizeBits)) );
+ qWarning("QFile::error %d: '%s'. Maximum size bits reset to %d.",
+ this_->largeFile.error(),
+ qPrintable(this_->largeFile.errorString()),
+ this_->maxSizeBits);
} else
lastKnownGoodIndex = qMax<int>(index_, lastKnownGoodIndex);
}