Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315368
b: refs/heads/master
c: 5deedde
h: refs/heads/master
v: v3
  • Loading branch information
Paul Gortmaker committed Jul 13, 2012
1 parent 72b151a commit f6011ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 568fc588fce85602e4e2c7573f6f912311306b72
refs/heads/master: 5deedde9fa65c494c9747dd66b1721be90991b64
24 changes: 7 additions & 17 deletions trunk/net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -3009,26 +3009,16 @@ u32 tipc_link_get_max_pkt(u32 dest, u32 selector)

static void link_print(struct tipc_link *l_ptr, const char *str)
{
char print_area[256];
struct print_buf pb;
struct print_buf *buf = &pb;

tipc_printbuf_init(buf, print_area, sizeof(print_area));

tipc_printf(buf, str);
tipc_printf(buf, "Link %x<%s>:",
l_ptr->addr, l_ptr->b_ptr->name);
pr_info("%s Link %x<%s>:", str, l_ptr->addr, l_ptr->b_ptr->name);

if (link_working_unknown(l_ptr))
tipc_printf(buf, ":WU");
pr_cont(":WU\n");
else if (link_reset_reset(l_ptr))
tipc_printf(buf, ":RR");
pr_cont(":RR\n");
else if (link_reset_unknown(l_ptr))
tipc_printf(buf, ":RU");
pr_cont(":RU\n");
else if (link_working_working(l_ptr))
tipc_printf(buf, ":WW");
tipc_printf(buf, "\n");

tipc_printbuf_validate(buf);
pr_info("%s", print_area);
pr_cont(":WW\n");
else
pr_cont("\n");
}

0 comments on commit f6011ce

Please sign in to comment.