tipc: trivial endian annotation in debug statement
Subsystems (3)
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
Signed-off-by Harvey Harrison <[email protected]>
--- net/tipc/name_table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/tipc/name_table.c +1 -1
@@ -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
David Miller
maintainerFrom: Harvey Harrison <[email protected]>
Date: Fri, 07 Nov 2008 17:12:07 -0800
Quoted 4 lines
Use htonl rather than ntohl on a u32.
net/tipc/name_table.c:557:2: warning: cast to restricted__be32Signed-off-by Harvey Harrison <[email protected]>
Applied thanks!