diff --git a/cgroup.c b/cgroup.c index e76b29521..1d77b20b5 100644 --- a/cgroup.c +++ b/cgroup.c @@ -177,7 +177,7 @@ static struct cg_set *get_cg_set(struct list_head *ctls, unsigned int n_ctls) list_add_tail(&cs->l, &cg_sets); n_sets++; - if (log_get_loglevel() >= LOG_DEBUG) { + if (!pr_quelled(LOG_DEBUG)) { struct cg_ctl *ctl; list_for_each_entry(ctl, &cs->ctls, l) diff --git a/fsnotify.c b/fsnotify.c index 0d2a1312e..95995987a 100644 --- a/fsnotify.c +++ b/fsnotify.c @@ -431,7 +431,7 @@ static char *get_mark_path(const char *who, struct file_remap *remap, sprintf(buf, "/proc/self/fd/%d", *target); path = buf; - if (log_get_loglevel() >= LOG_DEBUG) { + if (!pr_quelled(LOG_DEBUG)) { char link[PATH_MAX]; if (read_fd_link(*target, link, sizeof(link)) < 0) diff --git a/page-pipe.c b/page-pipe.c index 010da2470..db58f6a59 100644 --- a/page-pipe.c +++ b/page-pipe.c @@ -215,7 +215,7 @@ void debug_show_page_pipe(struct page_pipe *pp) int i; struct iovec *iov; - if (log_get_loglevel() < LOG_DEBUG) + if (pr_quelled(LOG_DEBUG)) return; pr_debug("Page pipe:\n");