From: Hao Chen Date: Fri, 3 Dec 2021 09:20:54 +0000 (+0800) Subject: net: hns3: align return value type of atomic_read() with its output X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9fcadbaae8ea85512ec84cf3f1158fd333185a7b;p=linux.git 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: Hao Chen Signed-off-by: Guangbin Huang Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index 081295bff7654..817e2e8a7287e 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c @@ -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", 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)); sprintf(result[j++], "%u", ring->page_pool->p.pool_size); sprintf(result[j++], "%u", ring->page_pool->p.order);