xprtrdma: Clean up xprt_rdma_print_stats()
checkpatch.pl complained about the seq_printf() format string split across lines and the use of %Lu. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Tested-by: Devesh Sharma <devesh.sharma@avagotech.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
2fcc213a18
commit
763f7e4e4b
|
@ -647,31 +647,29 @@ static void xprt_rdma_print_stats(struct rpc_xprt *xprt, struct seq_file *seq)
|
||||||
if (xprt_connected(xprt))
|
if (xprt_connected(xprt))
|
||||||
idle_time = (long)(jiffies - xprt->last_used) / HZ;
|
idle_time = (long)(jiffies - xprt->last_used) / HZ;
|
||||||
|
|
||||||
seq_printf(seq,
|
seq_puts(seq, "\txprt:\trdma ");
|
||||||
"\txprt:\trdma %u %lu %lu %lu %ld %lu %lu %lu %Lu %Lu "
|
seq_printf(seq, "%u %lu %lu %lu %ld %lu %lu %lu %llu %llu ",
|
||||||
"%lu %lu %lu %Lu %Lu %Lu %Lu %lu %lu %lu\n",
|
0, /* need a local port? */
|
||||||
|
xprt->stat.bind_count,
|
||||||
0, /* need a local port? */
|
xprt->stat.connect_count,
|
||||||
xprt->stat.bind_count,
|
xprt->stat.connect_time,
|
||||||
xprt->stat.connect_count,
|
idle_time,
|
||||||
xprt->stat.connect_time,
|
xprt->stat.sends,
|
||||||
idle_time,
|
xprt->stat.recvs,
|
||||||
xprt->stat.sends,
|
xprt->stat.bad_xids,
|
||||||
xprt->stat.recvs,
|
xprt->stat.req_u,
|
||||||
xprt->stat.bad_xids,
|
xprt->stat.bklog_u);
|
||||||
xprt->stat.req_u,
|
seq_printf(seq, "%lu %lu %lu %llu %llu %llu %llu %lu %lu %lu\n",
|
||||||
xprt->stat.bklog_u,
|
r_xprt->rx_stats.read_chunk_count,
|
||||||
|
r_xprt->rx_stats.write_chunk_count,
|
||||||
r_xprt->rx_stats.read_chunk_count,
|
r_xprt->rx_stats.reply_chunk_count,
|
||||||
r_xprt->rx_stats.write_chunk_count,
|
r_xprt->rx_stats.total_rdma_request,
|
||||||
r_xprt->rx_stats.reply_chunk_count,
|
r_xprt->rx_stats.total_rdma_reply,
|
||||||
r_xprt->rx_stats.total_rdma_request,
|
r_xprt->rx_stats.pullup_copy_count,
|
||||||
r_xprt->rx_stats.total_rdma_reply,
|
r_xprt->rx_stats.fixup_copy_count,
|
||||||
r_xprt->rx_stats.pullup_copy_count,
|
r_xprt->rx_stats.hardway_register_count,
|
||||||
r_xprt->rx_stats.fixup_copy_count,
|
r_xprt->rx_stats.failed_marshal_count,
|
||||||
r_xprt->rx_stats.hardway_register_count,
|
r_xprt->rx_stats.bad_reply_count);
|
||||||
r_xprt->rx_stats.failed_marshal_count,
|
|
||||||
r_xprt->rx_stats.bad_reply_count);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue