diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2010-12-31 13:59:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-01 16:57:52 -0500 |
commit | b29f14284989b3d0b3a5ce268b5b1fc4df9c5795 (patch) | |
tree | a690fc7db347cb8ca2b38dc1da73a477d1fb4779 /net/tipc/socket.c | |
parent | f5e75269f59f7c3816f23314b924895e4ecf8409 (diff) |
tipc: remove calls to dbg() and msg_dbg()
Eliminates obsolete calls to two of TIPC's main debugging macros, as well
as a pair of associated debugging routines that are no longer required.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r-- | net/tipc/socket.c | 39 |
1 files changed, 10 insertions, 29 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index cd0bb77f2673..7a21a5ee43e8 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -1226,42 +1226,25 @@ static u32 filter_rcv(struct sock *sk, struct sk_buff *buf) | |||
1226 | */ | 1226 | */ |
1227 | 1227 | ||
1228 | if (sock->state == SS_READY) { | 1228 | if (sock->state == SS_READY) { |
1229 | if (msg_connected(msg)) { | 1229 | if (msg_connected(msg)) |
1230 | msg_dbg(msg, "dispatch filter 1\n"); | ||
1231 | return TIPC_ERR_NO_PORT; | 1230 | return TIPC_ERR_NO_PORT; |
1232 | } | ||
1233 | } else { | 1231 | } else { |
1234 | if (msg_mcast(msg)) { | 1232 | if (msg_mcast(msg)) |
1235 | msg_dbg(msg, "dispatch filter 2\n"); | ||
1236 | return TIPC_ERR_NO_PORT; | 1233 | return TIPC_ERR_NO_PORT; |
1237 | } | ||
1238 | if (sock->state == SS_CONNECTED) { | 1234 | if (sock->state == SS_CONNECTED) { |
1239 | if (!msg_connected(msg)) { | 1235 | if (!msg_connected(msg)) |
1240 | msg_dbg(msg, "dispatch filter 3\n"); | ||
1241 | return TIPC_ERR_NO_PORT; | 1236 | return TIPC_ERR_NO_PORT; |
1242 | } | 1237 | } else if (sock->state == SS_CONNECTING) { |
1243 | } | 1238 | if (!msg_connected(msg) && (msg_errcode(msg) == 0)) |
1244 | else if (sock->state == SS_CONNECTING) { | ||
1245 | if (!msg_connected(msg) && (msg_errcode(msg) == 0)) { | ||
1246 | msg_dbg(msg, "dispatch filter 4\n"); | ||
1247 | return TIPC_ERR_NO_PORT; | 1239 | return TIPC_ERR_NO_PORT; |
1248 | } | 1240 | } else if (sock->state == SS_LISTENING) { |
1249 | } | 1241 | if (msg_connected(msg) || msg_errcode(msg)) |
1250 | else if (sock->state == SS_LISTENING) { | ||
1251 | if (msg_connected(msg) || msg_errcode(msg)) { | ||
1252 | msg_dbg(msg, "dispatch filter 5\n"); | ||
1253 | return TIPC_ERR_NO_PORT; | 1242 | return TIPC_ERR_NO_PORT; |
1254 | } | 1243 | } else if (sock->state == SS_DISCONNECTING) { |
1255 | } | ||
1256 | else if (sock->state == SS_DISCONNECTING) { | ||
1257 | msg_dbg(msg, "dispatch filter 6\n"); | ||
1258 | return TIPC_ERR_NO_PORT; | 1244 | return TIPC_ERR_NO_PORT; |
1259 | } | 1245 | } else /* (sock->state == SS_UNCONNECTED) */ { |
1260 | else /* (sock->state == SS_UNCONNECTED) */ { | 1246 | if (msg_connected(msg) || msg_errcode(msg)) |
1261 | if (msg_connected(msg) || msg_errcode(msg)) { | ||
1262 | msg_dbg(msg, "dispatch filter 7\n"); | ||
1263 | return TIPC_ERR_NO_PORT; | 1247 | return TIPC_ERR_NO_PORT; |
1264 | } | ||
1265 | } | 1248 | } |
1266 | } | 1249 | } |
1267 | 1250 | ||
@@ -1280,7 +1263,6 @@ static u32 filter_rcv(struct sock *sk, struct sk_buff *buf) | |||
1280 | 1263 | ||
1281 | /* Enqueue message (finally!) */ | 1264 | /* Enqueue message (finally!) */ |
1282 | 1265 | ||
1283 | msg_dbg(msg, "<DISP<: "); | ||
1284 | TIPC_SKB_CB(buf)->handle = msg_data(msg); | 1266 | TIPC_SKB_CB(buf)->handle = msg_data(msg); |
1285 | atomic_inc(&tipc_queue_size); | 1267 | atomic_inc(&tipc_queue_size); |
1286 | __skb_queue_tail(&sk->sk_receive_queue, buf); | 1268 | __skb_queue_tail(&sk->sk_receive_queue, buf); |
@@ -1588,7 +1570,6 @@ static int accept(struct socket *sock, struct socket *new_sock, int flags) | |||
1588 | * Respond to 'SYN+' by queuing it on new socket. | 1570 | * Respond to 'SYN+' by queuing it on new socket. |
1589 | */ | 1571 | */ |
1590 | 1572 | ||
1591 | msg_dbg(msg,"<ACC<: "); | ||
1592 | if (!msg_data_sz(msg)) { | 1573 | if (!msg_data_sz(msg)) { |
1593 | struct msghdr m = {NULL,}; | 1574 | struct msghdr m = {NULL,}; |
1594 | 1575 | ||