From 9ae79d869a37633fa956a4f16f3fa45b23c189f1 Mon Sep 17 00:00:00 2001 From: Michael Lentine Date: Wed, 30 Jul 2014 16:42:12 -0700 Subject: [PATCH] Build fix for size_t on 64bit. Change-Id: Ic16895b30d78ba8a635b709adbae31a590501b20 --- services/surfaceflinger/RenderEngine/RenderEngine.cpp | 4 ++-- services/surfaceflinger/SurfaceFlinger.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/surfaceflinger/RenderEngine/RenderEngine.cpp b/services/surfaceflinger/RenderEngine/RenderEngine.cpp index 2871ce996..d5d5da8fc 100644 --- a/services/surfaceflinger/RenderEngine/RenderEngine.cpp +++ b/services/surfaceflinger/RenderEngine/RenderEngine.cpp @@ -139,8 +139,8 @@ RenderEngine* RenderEngine::create(EGLDisplay display, int hwcFormat) { ALOGI("renderer : %s", extensions.getRenderer()); ALOGI("version : %s", extensions.getVersion()); ALOGI("extensions: %s", extensions.getExtension()); - ALOGI("GL_MAX_TEXTURE_SIZE = %d", engine->getMaxTextureSize()); - ALOGI("GL_MAX_VIEWPORT_DIMS = %d", engine->getMaxViewportDims()); + ALOGI("GL_MAX_TEXTURE_SIZE = %zu", engine->getMaxTextureSize()); + ALOGI("GL_MAX_VIEWPORT_DIMS = %zu", engine->getMaxViewportDims()); eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); eglDestroySurface(display, dummy); diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 63ee4e36e..4b4b12732 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -640,7 +640,7 @@ status_t SurfaceFlinger::setActiveConfig(const sp& display, int mode) { Vector configs; mFlinger.getDisplayConfigs(mDisplay, &configs); if(mMode < 0 || mMode >= configs.size()) { - ALOGE("Attempt to set active config = %d for display with %d configs", + ALOGE("Attempt to set active config = %d for display with %zu configs", mMode, configs.size()); } sp hw(mFlinger.getDisplayDevice(mDisplay));