Bug 260884

Summary: LOG_WITH_LEVEL macro is broken
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: Web Template FrameworkAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=235562

Description Jean-Yves Avenard [:jya] 2023-08-29 16:14:17 PDT
regressed by bug 235562.

```
#define LOG_WITH_LEVEL(channel, level, ...) do { \
        if  (LOG_CHANNEL(channel).state != logChannelStateOff && channel->level >= (level)) \
            WTFLogWithLevel(&LOG_CHANNEL(channel), level, __VA_ARGS__); \
    } while (0)

```

the macro is attempting to dereference `channel` ; but it's not a pointer.
Comment 1 Radar WebKit Bug Importer 2023-08-29 16:14:35 PDT
<rdar://problem/114666245>
Comment 2 Jean-Yves Avenard [:jya] 2023-08-30 02:52:16 PDT

*** This bug has been marked as a duplicate of bug 260897 ***