Commit f532e9fe authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

net: sockets -- Use dprintk helper

Drop USK_DEBUG, we have dprintk which is active
if compiled with make DEBUG=1
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent ccd5e229
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "image.h" #include "image.h"
#include "crtools.h" #include "crtools.h"
#define USK_DEBUG
static char buf[4096]; static char buf[4096];
#ifndef NETLINK_SOCK_DIAG #ifndef NETLINK_SOCK_DIAG
...@@ -77,18 +75,14 @@ static int sk_collect_one(int ino, int family, struct socket_desc *d) ...@@ -77,18 +75,14 @@ static int sk_collect_one(int ino, int family, struct socket_desc *d)
static void show_one_unix(char *act, struct unix_sk_desc *sk) static void show_one_unix(char *act, struct unix_sk_desc *sk)
{ {
#ifdef USK_DEBUG dprintk("\t%s: ino %d type %d state %d name %s\n",
pr_info("\t%s: ino %d type %d state %d name %s\n", act, act, sk->sd.ino, sk->type, sk->state, sk->name);
sk->sd.ino, sk->type, sk->state, sk->name);
#endif
} }
static void show_one_unix_img(char *act, struct unix_sk_entry *e) static void show_one_unix_img(char *act, struct unix_sk_entry *e)
{ {
#ifdef USK_DEBUG dprintk("\t%s: fd %d type %d state %d name %d bytes\n",
pr_info("\t%s: fd %d type %d state %d name %d bytes\n", act, act, e->fd, e->type, e->state, e->namelen);
e->fd, e->type, e->state, e->namelen);
#endif
} }
static int can_dump_unix_sk(struct unix_sk_desc *sk) static int can_dump_unix_sk(struct unix_sk_desc *sk)
...@@ -409,9 +403,7 @@ struct unix_conn_job { ...@@ -409,9 +403,7 @@ struct unix_conn_job {
static void unix_show_job(char *type, int fd, int id) static void unix_show_job(char *type, int fd, int id)
{ {
#ifdef USK_DEBUG dprintk("%s job fd %d id %d\n", type, fd, id);
pr_info("%s job fd %d id %d\n", type, fd, id);
#endif
} }
static struct unix_conn_job *conn_jobs; static struct unix_conn_job *conn_jobs;
......
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