[CRIU] [PATCH] log: Don't print time-stamp on LOG_MSG

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 3 11:03:28 EDT 2012


Otherwise "show" action become unreadable.

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

diff --git a/log.c b/log.c
index acbbb58..d3357a9 100644
--- a/log.c
+++ b/log.c
@@ -189,7 +189,8 @@ void print_on_level(unsigned int loglevel, const char *format, ...)
 		fd = current_logfd;
 	}
 
-	print_ts();
+	if (loglevel != LOG_MSG)
+		print_ts();
 
 	va_start(params, format);
 	size = vsnprintf(buffer + buf_off, PAGE_SIZE - buf_off, format, params);
-- 
1.7.7.6



More information about the CRIU mailing list