Skip to content

Commit

Permalink
ib/srp: Add missing new line after displaying fast_io_fail_tmo param
Browse files Browse the repository at this point in the history
Long-time missing new-line in sysfs output.
Simply add it.

Signed-off-by: Donald Dutile <ddutile@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20191009164937.21989-1-ddutile@redhat.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Donald Dutile authored and Doug Ledford committed Oct 21, 2019
1 parent d302c6e commit 5a0d523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,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)
Expand Down

0 comments on commit 5a0d523

Please sign in to comment.