aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiongfeng Wang <[email protected]>2020-09-03 19:29:33 +0800
committerMartin K. Petersen <[email protected]>2020-09-15 20:19:13 -0400
commit6d70cb343484e626266b82451facad30e28b5e9f (patch)
treeea9490c1f866cb2ce5e21f6afe5677ecd0ba8f90
parent782e2efb749f617209363b1ec1dd5cfc41a427e9 (diff)
scsi: target: tcmu: Add missing newline when printing parameters
The tcmu 'global_max_data_area_mb' parameter in sysfs is missing a newline. Add it. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xiongfeng Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/target/target_core_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 9b7592350502..9775670351c6 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -242,7 +242,7 @@ static int tcmu_set_global_max_data_area(const char *str,
static int tcmu_get_global_max_data_area(char *buffer,
const struct kernel_param *kp)
{
- return sprintf(buffer, "%d", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks));
+ return sprintf(buffer, "%d\n", TCMU_BLOCKS_TO_MBS(tcmu_global_max_blocks));
}
static const struct kernel_param_ops tcmu_global_max_data_area_op = {