[CRIU] [PATCH] show: Set log-level to LOG_WARN

Cyrill Gorcunov gorcunov at openvz.org
Sat Feb 25 09:23:41 EST 2012


We use pr_info for "show" action so
adjust log-level accordingly.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 crtools.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/crtools.c b/crtools.c
index fd7c707..3128135 100644
--- a/crtools.c
+++ b/crtools.c
@@ -399,6 +399,8 @@ int main(int argc, char *argv[])
 		ret = cr_restore_tasks(pid, &opts);
 		break;
 	case 's':
+		if (log_level < LOG_WARN)
+			set_loglevel(LOG_WARN);
 		ret = cr_show(pid, &opts);
 		break;
 	default:
-- 
1.7.7.6



More information about the CRIU mailing list