Commit d6f09cd3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

log: Use pr_quelled helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d039868f
......@@ -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)
......
......@@ -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)
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment