aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-02-13 09:57:29 +0100
committerKai Koehne <kai.koehne@qt.io>2018-02-13 13:37:15 +0000
commitb733c37522abeb33f2e14f7a8fdefaf15acf42b5 (patch)
tree728403d52e9194ac4fbb81fa9942909f8cd1f3bd /src/quick/scenegraph/util
parentff08272245c099cadd433c8b5d4f98301f5e585b (diff)
ScenGraph: Prefer printf style logging
This generates more compact code, saving 20480 bytes on disk (Linux 64 bit, release build). Change-Id: I73d6d88b7b61b87a5d714e131fcf86ee80c83f38 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/scenegraph/util')
-rw-r--r--src/quick/scenegraph/util/qsgatlastexture.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quick/scenegraph/util/qsgatlastexture.cpp b/src/quick/scenegraph/util/qsgatlastexture.cpp
index 9d37746fff..529cdaf070 100644
--- a/src/quick/scenegraph/util/qsgatlastexture.cpp
+++ b/src/quick/scenegraph/util/qsgatlastexture.cpp
@@ -501,9 +501,10 @@ void Atlas::uploadPendingTexture(int i)
textureSize.height() > m_atlas_transient_image_threshold)
t->releaseImage();
- qCDebug(QSG_LOG_TIME_TEXTURE).nospace() << "atlastexture uploaded in: " << qsg_renderer_timer.elapsed()
- << "ms (" << t->textureSize().width() << "x"
- << t->textureSize().height() << ")";
+ qCDebug(QSG_LOG_TIME_TEXTURE, "atlastexture uploaded in: %lldms (%dx%d)",
+ qsg_renderer_timer.elapsed(),
+ t->textureSize().width(),
+ t->textureSize().height());
}
TextureBase::TextureBase(AtlasBase *atlas, const QRect &textureRect)