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

Commit 617bb203 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix undefined names used in ALOGV_IF.

* New ALOGV_IF macros and clang-tidy can now detect errors in ALOGV_IF.

Test: build with WITH_TIDY=1
Change-Id: If87e41e86bd5fc2d5ef0666026781688ea22db94
parent 071d25dd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1996,8 +1996,8 @@ void SurfaceFlinger::beginFrame(const sp<DisplayDevice>& display)
    //   emit any black frames until a layer is added to the layer stack.
    bool mustRecompose = dirty && !(empty && wasEmpty);

    ALOGV_IF(displayDevice->getDisplayType() == DisplayDevice::DISPLAY_VIRTUAL,
            "dpy[%zu]: %s composition (%sdirty %sempty %swasEmpty)", dpy,
    ALOGV_IF(display->getDisplayType() == DisplayDevice::DISPLAY_VIRTUAL,
            "id[%d]: %s composition (%sdirty %sempty %swasEmpty)", display->getId(),
            mustRecompose ? "doing" : "skipping",
            dirty ? "+" : "-",
            empty ? "+" : "-",