RDMA/rtrs-srv: convert scnprintf to sysfs_emit
Link: https://lore.kernel.org/r/20210528113018.52290-15-jinpu.wang@ionos.com Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
0cdfb3b207
commit
78df092c38
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user