OSDN Git Service

SurfaceFlinger: Make log message 64-bit compatible
authorDan Stoza <stoza@google.com>
Fri, 16 Jan 2015 23:58:13 +0000 (15:58 -0800)
committerDan Stoza <stoza@google.com>
Fri, 16 Jan 2015 23:58:13 +0000 (15:58 -0800)
Fixes the build on 64-bit targets that complain about using a size_t
with a %d in a format string

Change-Id: I7dfcd3a49eb0dbc5dffeb82bb7208de7f7925f08

services/surfaceflinger/SurfaceFlinger.cpp

index 828ba9d..6013ddb 100644 (file)
@@ -2009,7 +2009,7 @@ bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const
             ++blameCounts[blame.second];
         }
 
-        ALOGI("FD Blame: %d open fds", currentFds.size());
+        ALOGI("FD Blame: %zu open fds", currentFds.size());
         for (auto blame : blameCounts) {
             std::string layers;
             for (auto layer : blame.first) {