[CRIU] [PATCH 2/3] log: Use pr_quelled helper
Cyrill Gorcunov
gorcunov at openvz.org
Tue Sep 2 12:27:20 PDT 2014
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
cgroup.c | 2 +-
fsnotify.c | 2 +-
page-pipe.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cgroup.c b/cgroup.c
index e76b29521632..1d77b20b5968 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 c9373c793cf4..c14ecb4d6225 100644
--- a/fsnotify.c
+++ b/fsnotify.c
@@ -390,7 +390,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 010da2470345..db58f6a59c8e 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");
--
1.9.3
More information about the CRIU
mailing list