compositor: Use the logging context when iterating over scopes 65/29065/2
authorMarius Vlad <marius.vlad@collabora.com>
Mon, 24 Jul 2023 17:24:33 +0000 (20:24 +0300)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 3 Aug 2023 13:50:19 +0000 (13:50 +0000)
In accordance to the upstream changes refer to the logging context
rather than the compositor instance.

Depends on https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/29064

Bug-AGL: SPEC-4861
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I4a8aeac4ef33e0631c23ae85347fea8a1b36c4de

src/compositor.c

index 6cb822b..52f1b18 100644 (file)
@@ -1862,7 +1862,7 @@ int wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_da
 
                weston_log("Printing available debug scopes:\n");
 
-               while ((nscope = weston_log_scopes_iterate(ivi.compositor, nscope))) {
+               while ((nscope = weston_log_scopes_iterate(log_ctx, nscope))) {
                        weston_log("\tscope name: %s, desc: %s",
                                        weston_log_scope_get_name(nscope),
                                        weston_log_scope_get_description(nscope));