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:
parent
d039868f99
commit
d6f09cd35c
2
cgroup.c
2
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);
|
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)
|
||||||
|
@ -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)
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user