2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

log: Use pr_quelled helper

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov 2014-09-02 23:27:20 +04:00 committed by Pavel Emelyanov
parent d039868f99
commit d6f09cd35c
3 changed files with 3 additions and 3 deletions

View File

@ -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); list_add_tail(&cs->l, &cg_sets);
n_sets++; n_sets++;
if (log_get_loglevel() >= LOG_DEBUG) { if (!pr_quelled(LOG_DEBUG)) {
struct cg_ctl *ctl; struct cg_ctl *ctl;
list_for_each_entry(ctl, &cs->ctls, l) list_for_each_entry(ctl, &cs->ctls, l)

View File

@ -431,7 +431,7 @@ static char *get_mark_path(const char *who, struct file_remap *remap,
sprintf(buf, "/proc/self/fd/%d", *target); sprintf(buf, "/proc/self/fd/%d", *target);
path = buf; path = buf;
if (log_get_loglevel() >= LOG_DEBUG) { if (!pr_quelled(LOG_DEBUG)) {
char link[PATH_MAX]; char link[PATH_MAX];
if (read_fd_link(*target, link, sizeof(link)) < 0) if (read_fd_link(*target, link, sizeof(link)) < 0)

View File

@ -215,7 +215,7 @@ void debug_show_page_pipe(struct page_pipe *pp)
int i; int i;
struct iovec *iov; struct iovec *iov;
if (log_get_loglevel() < LOG_DEBUG) if (pr_quelled(LOG_DEBUG))
return; return;
pr_debug("Page pipe:\n"); pr_debug("Page pipe:\n");