]> git.baikalelectronics.ru Git - kernel.git/commit
net: ping: Use right format specifier to avoid type casting
authorGao Feng <fgao@ikuai8.com>
Tue, 17 Jan 2017 02:21:19 +0000 (10:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2017 20:25:55 +0000 (15:25 -0500)
commit08ae2e3af0d013267327a25e0bf87840b44bd1ec
tree2e01ff3ce59aa55523e48a109d2b2bdbc8f896e9
parent833d0c2a07c3b5506288b804a4a6c9f24ff6a349
net: ping: Use right format specifier to avoid type casting

The inet_num is u16, so use %hu instead of casting it to int. And
the sk_bound_dev_if is int actually, so it needn't cast to int.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c