tipc: Fix print statements that assume pointers are 32-bit values
authorAllan Stephens <Allan.Stephens@windriver.com>
Tue, 18 Jan 2011 18:31:32 +0000 (13:31 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 23 Feb 2011 23:05:10 +0000 (18:05 -0500)
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>
net/tipc/link.c

index 3c1c28cdbaa4dc528868c8d2f8ff287a1e071427..d586265e54a402cb18b1bbba58b93fa7d808c6b1 100644 (file)
@@ -2983,9 +2983,9 @@ static void link_print(struct link *l_ptr, const char *str)
                     != (l_ptr->out_queue_size - 1)) ||
                    (l_ptr->last_out->next != NULL)) {
                        tipc_printf(buf, "\nSend queue inconsistency\n");
-                       tipc_printf(buf, "first_out= %x ", l_ptr->first_out);
-                       tipc_printf(buf, "next_out= %x ", l_ptr->next_out);
-                       tipc_printf(buf, "last_out= %x ", l_ptr->last_out);
+                       tipc_printf(buf, "first_out= %p ", l_ptr->first_out);
+                       tipc_printf(buf, "next_out= %p ", l_ptr->next_out);
+                       tipc_printf(buf, "last_out= %p ", l_ptr->last_out);
                }
        } else
                tipc_printf(buf, "[]");