提交 9fcadbaa 编写于 作者: H Hao Chen 提交者: 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: NHao Chen <chenhao288@hisilicon.com>
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册