]> git.baikalelectronics.ru Git - kernel.git/commit
skbuff: fix compilation warnings in skb_dump()
authorQian Cai <cai@lca.pw>
Tue, 16 Jul 2019 15:43:05 +0000 (11:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jul 2019 21:12:06 +0000 (14:12 -0700)
commit59d6fea2c26b4220096fbbb3c4b30923ca0bf55a
treee0391f6e8fc339414d92164e048615d3e515ce25
parent55ef2f9ea910065b25437bee3558e35ce1888a47
skbuff: fix compilation warnings in skb_dump()

The commit a2b325611c02 ("skbuff: increase verbosity when dumping skb
data") introduced a few compilation warnings.

net/core/skbuff.c:766:32: warning: format specifies type 'unsigned
short' but the argument has type 'unsigned int' [-Wformat]
                       level, sk->sk_family, sk->sk_type,
sk->sk_protocol);
                                             ^~~~~~~~~~~
net/core/skbuff.c:766:45: warning: format specifies type 'unsigned
short' but the argument has type 'unsigned int' [-Wformat]
                       level, sk->sk_family, sk->sk_type,
sk->sk_protocol);
^~~~~~~~~~~~~~~

Fix them by using the proper types.

Fixes: a2b325611c02 ("skbuff: increase verbosity when dumping skb data")
Signed-off-by: Qian Cai <cai@lca.pw>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c