[2/9] seccomp: Define log prefix

Submitted by Cyrill Gorcunov on April 26, 2018, 8:14 p.m.

Details

Message ID 20180426201443.2163-3-gorcunov@gmail.com
State Rejected
Series "Per-thread seccomp support, v3"
Headers show

Commit Message

Cyrill Gorcunov April 26, 2018, 8:14 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;

Comments

Dmitry Safonov May 4, 2018, 10:30 p.m.
2018-04-26 21:14 GMT+01:00 Cyrill Gorcunov <gorcunov@gmail.com>:
> For grepability sake in logs.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>

Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>