[2/7] seccomp: Define log prefix

Submitted by Cyrill Gorcunov on April 6, 2018, 7:17 p.m.

Details

Message ID 20180406191708.11325-3-gorcunov@gmail.com
State Accepted
Series "seccomp, v2: Add support for per-thread c/r"
Commit 532d27989a5d09cc07f8bbc05164d7371d4db376
Headers show

Commit Message

Cyrill Gorcunov April 6, 2018, 7:17 p.m.
For grepability sake in logs.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/seccomp.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/seccomp.c b/criu/seccomp.c
index 6416e793c61f..673812b4d2d1 100644
--- a/criu/seccomp.c
+++ b/criu/seccomp.c
@@ -18,6 +18,9 @@ 
 #include "protobuf.h"
 #include "images/seccomp.pb-c.h"
 
+#undef	LOG_PREFIX
+#define LOG_PREFIX "seccomp: "
+
 /* populated on dump during collect_seccomp_filters() */
 static int next_filter_id = 0;
 static struct seccomp_info **filters = NULL;