Skip to contentSkip to conversation

tipc: trivial endian annotation in debug statement

PATCH In review Harvey Harrison 2 participants 2 messages Nov 8, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tipc: trivial endian annotation in debug statement

Use htonl rather than ntohl on a u32. net/tipc/name_table.c:557:2: warning: cast to restricted __be32

---
 net/tipc/name_table.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/tipc/name_table.c +1 -1
index cd72e22..acab41a 100644
@@ -555,7 +555,7 @@ static struct name_seq *nametbl_find_seq(u32 type)
 	struct name_seq *ns;
 
 	dbg("find_seq %u,(%u,0x%x) table = %p, hash[type] = %u\n",
-	    type, ntohl(type), type, table.types, hash(type));
+	    type, htonl(type), type, table.types, hash(type));
 
 	seq_head = &table.types[hash(type)];
 	hlist_for_each_entry(ns, seq_node, seq_head, ns_list) {
Signature · 1 line
1.6.0.3.756.gb776d