]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tipc: Fix bugs in message error code display when debugging
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 5 Jun 2008 00:29:09 +0000 (17:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2008 00:29:09 +0000 (17:29 -0700)
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>
net/tipc/msg.c

index 38abebaae889817e6cba6ea806f7041947090f93..73dcd00d674edc19005b9ab4dd138b611462da29 100644 (file)
@@ -230,13 +230,10 @@ void tipc_msg_dbg(struct print_buf *buf, struct tipc_msg *msg, const char *str)
 
        switch (usr) {
        case CONN_MANAGER:
-       case NAME_DISTRIBUTOR:
        case TIPC_LOW_IMPORTANCE:
        case TIPC_MEDIUM_IMPORTANCE:
        case TIPC_HIGH_IMPORTANCE:
        case TIPC_CRITICAL_IMPORTANCE:
-               if (msg_short(msg))
-                       break;  /* No error */
                switch (msg_errcode(msg)) {
                case TIPC_OK:
                        break;