staging: lustre: ptlrpc: Replace seq_printf() with seq_putc()
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 26 Oct 2015 17:07:26 +0000 (22:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 05:37:09 +0000 (14:37 +0900)
Replace seq_printf() with seq_putc() since it is more expensive than
seq_putc().

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c

index bc5437e85c6a49d6b9924b4d15071272bd42223d..35044634c9db09f549c8d032d49863447634ecb4 100644 (file)
@@ -928,7 +928,7 @@ static int ptlrpc_lprocfs_svc_req_history_show(struct seq_file *s, void *iter)
                           (long)(req->rq_sent - req->rq_arrival_time.tv_sec),
                           (long)(req->rq_sent - req->rq_deadline));
                if (svc->srv_ops.so_req_printer == NULL)
-                       seq_printf(s, "\n");
+                       seq_putc(s, '\n');
                else
                        svc->srv_ops.so_req_printer(s, srhi->srhi_req);
        }