Commit 18cb72ac authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

net: Add prefixes for better logging

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent a3a42a4c
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
#include "util.h" #include "util.h"
#include "namespaces.h" #include "namespaces.h"
#undef LOG_PREFIX
#define LOG_PREFIX "inet: "
#define PB_ALEN_INET 1 #define PB_ALEN_INET 1
#define PB_ALEN_INET6 4 #define PB_ALEN_INET6 4
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#include "libnetlink.h" #include "libnetlink.h"
#include "namespaces.h" #include "namespaces.h"
#undef LOG_PREFIX
#define LOG_PREFIX "netlink: "
struct netlink_sk_desc { struct netlink_sk_desc {
struct socket_desc sd; struct socket_desc sd;
u32 portid; u32 portid;
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
#include "images/fdinfo.pb-c.h" #include "images/fdinfo.pb-c.h"
#include "namespaces.h" #include "namespaces.h"
#undef LOG_PREFIX
#define LOG_PREFIX "packet: "
struct packet_sock_info { struct packet_sock_info {
PacketSockEntry *pse; PacketSockEntry *pse;
struct file_desc d; struct file_desc d;
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
#include "protobuf.h" #include "protobuf.h"
#include "images/sk-packet.pb-c.h" #include "images/sk-packet.pb-c.h"
#undef LOG_PREFIX
#define LOG_PREFIX "skqueue: "
struct sk_packet { struct sk_packet {
struct list_head list; struct list_head list;
SkPacketEntry *entry; SkPacketEntry *entry;
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
#include "protobuf.h" #include "protobuf.h"
#include "images/tcp-stream.pb-c.h" #include "images/tcp-stream.pb-c.h"
#undef LOG_PREFIX
#define LOG_PREFIX "tcp: "
static LIST_HEAD(cpt_tcp_repair_sockets); static LIST_HEAD(cpt_tcp_repair_sockets);
static LIST_HEAD(rst_tcp_repair_sockets); static LIST_HEAD(rst_tcp_repair_sockets);
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
#include "util.h" #include "util.h"
#include "fdstore.h" #include "fdstore.h"
#undef LOG_PREFIX
#define LOG_PREFIX "sockets: "
#ifndef SOCK_DIAG_BY_FAMILY #ifndef SOCK_DIAG_BY_FAMILY
#define SOCK_DIAG_BY_FAMILY 20 #define SOCK_DIAG_BY_FAMILY 20
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment