Commit 9fcadbaa authored by Hao Chen's avatar Hao Chen Committed by David S. Miller

net: hns3: align return value type of atomic_read() with its output

Change output value type of atomic_read() from %u to %d.
Signed-off-by: default avatarHao Chen <chenhao288@hisilicon.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 72dcdec1
...@@ -1083,7 +1083,7 @@ static void hns3_dump_page_pool_info(struct hns3_enet_ring *ring, ...@@ -1083,7 +1083,7 @@ static void hns3_dump_page_pool_info(struct hns3_enet_ring *ring,
sprintf(result[j++], "%u", index); sprintf(result[j++], "%u", index);
sprintf(result[j++], "%u", sprintf(result[j++], "%u",
READ_ONCE(ring->page_pool->pages_state_hold_cnt)); READ_ONCE(ring->page_pool->pages_state_hold_cnt));
sprintf(result[j++], "%u", sprintf(result[j++], "%d",
atomic_read(&ring->page_pool->pages_state_release_cnt)); atomic_read(&ring->page_pool->pages_state_release_cnt));
sprintf(result[j++], "%u", ring->page_pool->p.pool_size); sprintf(result[j++], "%u", ring->page_pool->p.pool_size);
sprintf(result[j++], "%u", ring->page_pool->p.order); sprintf(result[j++], "%u", ring->page_pool->p.order);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment