Re: [PATCH net-next 1/1] net: ping: Use right format specifier to avoid type casting

2017-01-17 Thread David Miller
From: f...@ikuai8.com Date: Tue, 17 Jan 2017 10:21:19 +0800 > From: Gao Feng > > 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 Applied.

[PATCH net-next 1/1] net: ping: Use right format specifier to avoid type casting

2017-01-16 Thread fgao
From: Gao Feng 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 --- net/ipv4/ping.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/ipv4/ping.c b/net/ipv4/ping