Skip to contentSkip to conversation

staging: lustre: ptlrpc: Replace seq_printf() with seq_putc()

PATCH New Amitoj Kaur Chawla 1 participant 1 message Oct 26, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: lustre: ptlrpc: Replace seq_printf() with seq_putc()

Replace seq_printf() with seq_putc() since it is more expensive than seq_putc().

---
Changes in v2:
-Replaced seq_puts() with seq_putc()

 drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c +1 -1
index 6cf9b92..183fc8b 100644
@@ -923,7 +923,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);
 	}
Signature · 1 line
1.9.1