diff options
author | Allan Stephens <Allan.Stephens@windriver.com> | 2011-01-18 13:31:32 -0500 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-02-23 18:05:10 -0500 |
commit | c8a61b52ebac3645b4e3c5b03c2073e6c8c119a8 (patch) | |
tree | 7d9932ec55c9abceb65c5c723de3429f11722a3b /net/tipc/link.c | |
parent | 5413b4c6c07b659e52c84a4e40d897b32b89834f (diff) |
tipc: Fix print statements that assume pointers are 32-bit values
Corrects print statements that use %x to print pointer values to use
%p instead, so that 64-bit pointer values are displayed correctly.
Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/link.c')
-rw-r--r-- | net/tipc/link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index 3c1c28cdbaa4..d586265e54a4 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -2983,9 +2983,9 @@ static void link_print(struct link *l_ptr, const char *str) | |||
2983 | != (l_ptr->out_queue_size - 1)) || | 2983 | != (l_ptr->out_queue_size - 1)) || |
2984 | (l_ptr->last_out->next != NULL)) { | 2984 | (l_ptr->last_out->next != NULL)) { |
2985 | tipc_printf(buf, "\nSend queue inconsistency\n"); | 2985 | tipc_printf(buf, "\nSend queue inconsistency\n"); |
2986 | tipc_printf(buf, "first_out= %x ", l_ptr->first_out); | 2986 | tipc_printf(buf, "first_out= %p ", l_ptr->first_out); |
2987 | tipc_printf(buf, "next_out= %x ", l_ptr->next_out); | 2987 | tipc_printf(buf, "next_out= %p ", l_ptr->next_out); |
2988 | tipc_printf(buf, "last_out= %x ", l_ptr->last_out); | 2988 | tipc_printf(buf, "last_out= %p ", l_ptr->last_out); |
2989 | } | 2989 | } |
2990 | } else | 2990 | } else |
2991 | tipc_printf(buf, "[]"); | 2991 | tipc_printf(buf, "[]"); |