diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-06-04 20:29:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-04 20:29:09 -0400 |
commit | e0d4e3d0d72cfae7b7eac14e39e12dfc6b406313 (patch) | |
tree | 3cd2b802b22877e45481893ab6a8c652ee1a8144 /net/tipc/msg.c | |
parent | 5307e46957e76d71f02d2d736030ad92cdb3dd8c (diff) |
tipc: Fix bugs in message error code display when debugging
This patch corrects two problems in the display of error code
information in TIPC messages when debugging:
- no longer tries to display error code in NAME_DISTRIBUTOR
messages, which don't have the error field
- now displays error code in 24 byte data messages, which do
have the error field
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.c')
-rw-r--r-- | net/tipc/msg.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/tipc/msg.c b/net/tipc/msg.c index 38abebaae889..73dcd00d674e 100644 --- a/net/tipc/msg.c +++ b/net/tipc/msg.c | |||
@@ -230,13 +230,10 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str) | |||
230 | 230 | ||
231 | switch (usr) { | 231 | switch (usr) { |
232 | case CONN_MANAGER: | 232 | case CONN_MANAGER: |
233 | case NAME_DISTRIBUTOR: | ||
234 | case TIPC_LOW_IMPORTANCE: | 233 | case TIPC_LOW_IMPORTANCE: |
235 | case TIPC_MEDIUM_IMPORTANCE: | 234 | case TIPC_MEDIUM_IMPORTANCE: |
236 | case TIPC_HIGH_IMPORTANCE: | 235 | case TIPC_HIGH_IMPORTANCE: |
237 | case TIPC_CRITICAL_IMPORTANCE: | 236 | case TIPC_CRITICAL_IMPORTANCE: |
238 | if (msg_short(msg)) | ||
239 | break; /* No error */ | ||
240 | switch (msg_errcode(msg)) { | 237 | switch (msg_errcode(msg)) { |
241 | case TIPC_OK: | 238 | case TIPC_OK: |
242 | break; | 239 | break; |