Commit 78df092c authored by Jack Wang's avatar Jack Wang Committed by Jason Gunthorpe

RDMA/rtrs-srv: convert scnprintf to sysfs_emit

Link: https://lore.kernel.org/r/20210528113018.52290-15-jinpu.wang@ionos.comSigned-off-by: default avatarJack Wang <jinpu.wang@ionos.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 0cdfb3b2
......@@ -28,7 +28,7 @@ ssize_t rtrs_srv_stats_rdma_to_str(struct rtrs_srv_stats *stats,
{
struct rtrs_srv_stats_rdma_stats *r = &stats->rdma_stats;
return scnprintf(page, len, "%lld %lld %lld %lldn %u\n",
return sysfs_emit(page, "%lld %lld %lld %lldn %u\n",
(s64)atomic64_read(&r->dir[READ].cnt),
(s64)atomic64_read(&r->dir[READ].size_total),
(s64)atomic64_read(&r->dir[WRITE].cnt),
......
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