[CRIU] [PATCH 1/3] eventfd: Add LOG_PREFIX

Cyrill Gorcunov gorcunov at openvz.org
Mon Aug 20 04:14:45 EDT 2012


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

diff --git a/eventfd.c b/eventfd.c
index 1706016..75c8b84 100644
--- a/eventfd.c
+++ b/eventfd.c
@@ -24,6 +24,9 @@
 #include "protobuf.h"
 #include "protobuf/eventfd.pb-c.h"
 
+#undef	LOG_PREFIX
+#define LOG_PREFIX "eventfd: "
+
 struct eventfd_file_info {
 	EventfdFileEntry		*efe;
 	struct file_desc		d;
@@ -37,7 +40,7 @@ int is_eventfd_link(int lfd)
 
 static void pr_info_eventfd(char *action, EventfdFileEntry *efe)
 {
-	pr_info("%seventfd: id %#08x flags %#04x counter %#016lx\n",
+	pr_info("%s: id %#08x flags %#04x counter %#016lx\n",
 		action, efe->id, efe->flags, efe->counter);
 }
 
-- 
1.7.7.6



More information about the CRIU mailing list