Skip to content

Commit

Permalink
tipc: trivial endian annotation in debug statement
Browse files Browse the repository at this point in the history
Use htonl rather than ntohl on a u32.
net/tipc/name_table.c:557:2: warning: cast to restricted __be32

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Harvey Harrison authored and David S. Miller committed Nov 8, 2008
1 parent f400923 commit f574179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/name_table.c
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit f574179

Please sign in to comment.