From 35aadd6be249da4bd4851692e6aff757c91b32a7 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 8 Mar 2012 22:01:51 -0800 Subject: [PATCH] fix surfaceflinger's dumpsys Change-Id: I7b95c3e04f145003f9c0eef321a21f3f36dfe835 --- services/surfaceflinger/SurfaceFlinger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 7f61fe4df..434ebc30c 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1523,24 +1523,25 @@ status_t SurfaceFlinger::dump(int fd, const Vector& args) size_t index = 0; size_t numArgs = args.size(); if (numArgs) { - dumpAll = false; - if ((index < numArgs) && (args[index] == String16("--list"))) { index++; listLayersLocked(args, index, result, buffer, SIZE); + dumpAll = false; } if ((index < numArgs) && (args[index] == String16("--latency"))) { index++; dumpStatsLocked(args, index, result, buffer, SIZE); + dumpAll = false; } if ((index < numArgs) && (args[index] == String16("--latency-clear"))) { index++; clearStatsLocked(args, index, result, buffer, SIZE); + dumpAll = false; } }