Bug 260884 - LOG_WITH_LEVEL macro is broken
Summary: LOG_WITH_LEVEL macro is broken
Status: RESOLVED DUPLICATE of bug 260897
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-08-29 16:14 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-08-30 02:52 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***