From b733c37522abeb33f2e14f7a8fdefaf15acf42b5 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 13 Feb 2018 09:57:29 +0100 Subject: 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 --- src/quick/scenegraph/util/qsgatlastexture.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/quick/scenegraph/util') 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) -- cgit v1.2.3