Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2852a2d6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "gpuservice: Use startsWith() instead of compare() to check for a string prefix."

parents 419cd987 d09003d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ status_t GpuService::doDump(int fd, const Vector<String16>& args, bool /*asProto
                    dumpDriverInfo = true;
                } else if (args[index] == String16("--gpumem")) {
                    dumpMemory = true;
                } else if (args[index].compare(String16("--gpumem=")) > 0) {
                } else if (args[index].startsWith(String16("--gpumem="))) {
                    dumpMemory = true;
                    pid = atoi(String8(&args[index][9]));
                }