Signed-off-by: Jack Wang <jinpu.wang@xxxxxxxxx> --- drivers/infiniband/ulp/rtrs/rtrs-srv-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv-stats.c b/drivers/infiniband/ulp/rtrs/rtrs-srv-stats.c index 520c24773229..12c374b5eb6e 100644 --- a/drivers/infiniband/ulp/rtrs/rtrs-srv-stats.c +++ b/drivers/infiniband/ulp/rtrs/rtrs-srv-stats.c @@ -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), -- 2.25.1