msm: ipc: Fix the logic while dumping IPC Router routing table info

IPC Router Routing table is organized as a hash table. The routing
table information is dumped based on the index into that hash table.
Update the logic to dump the routing table information based on the
subsystem's node id.

Change-Id: Ideaf24934b93349e2f2cf1d695d08841c04aa5f9
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
This commit is contained in:
Mekala Natarajan
2013-04-18 14:54:15 -07:00
committed by Iliyan Malchev
parent a13d468a7d
commit 04eac63b0e

View File

@@ -2096,7 +2096,7 @@ static int dump_routing_table(char *buf, int max)
mutex_lock(&rt_entry->lock);
i += scnprintf(buf + i, max - i,
"Node Id: 0x%08x\n", rt_entry->node_id);
if (j == IPC_ROUTER_NID_LOCAL) {
if (rt_entry->node_id == IPC_ROUTER_NID_LOCAL) {
i += scnprintf(buf + i, max - i,
"XPRT Name: Loopback\n");
i += scnprintf(buf + i, max - i,