diff mbox series

ib/srp: Add missing new line after displaying fast_io_fail_tmo param

Message ID 20191009164937.21989-1-ddutile@redhat.com (mailing list archive)
State Mainlined
Commit 5a0d523781075529e9c2ff3ba7312ddf4e32609a
Headers show
Series ib/srp: Add missing new line after displaying fast_io_fail_tmo param | expand

Commit Message

Donald Dutile Oct. 9, 2019, 4:49 p.m. UTC
Long-time missing new-line in sysfs output.
Simply add it.

Signed-off-by: Donald Dutile <ddutile@redhat.com>
---
 drivers/infiniband/ulp/srp/ib_srp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Bart Van Assche Oct. 9, 2019, 9:55 p.m. UTC | #1
On 10/9/19 9:49 AM, Donald Dutile wrote:
> Long-time missing new-line in sysfs output.
> Simply add it.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Doug Ledford Oct. 21, 2019, 8:55 p.m. UTC | #2
On Wed, 2019-10-09 at 14:55 -0700, Bart Van Assche wrote:
> On 10/9/19 9:49 AM, Donald Dutile wrote:
> > Long-time missing new-line in sysfs output.
> > Simply add it.
> 
> Reviewed-by: Bart Van Assche <bvanassche@acm.org>

Thanks, applied to for-next.
diff mbox series

Patch

diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index cee855e85705..8fff3d6bce53 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -165,9 +165,9 @@  static int srp_tmo_get(char *buffer, const struct kernel_param *kp)
 	int tmo = *(int *)kp->arg;
 
 	if (tmo >= 0)
-		return sprintf(buffer, "%d", tmo);
+		return sprintf(buffer, "%d\n", tmo);
 	else
-		return sprintf(buffer, "off");
+		return sprintf(buffer, "off\n");
 }
 
 static int srp_tmo_set(const char *val, const struct kernel_param *kp)