region: fix log level check in dump_region

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-04-14 18:24:40 +01:00
parent 4c001f3368
commit b9fab89918
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ typedef pixman_box32_t rect_t;
RC_TYPE(region_t, rc_region, pixman_region32_init, pixman_region32_fini, static inline)
static inline void dump_region(const region_t *x) {
if (log_get_level_tls() < LOG_LEVEL_TRACE) {
if (log_get_level_tls() > LOG_LEVEL_TRACE) {
return;
}
int nrects;