Commit 6d70cb34 authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by Martin K. Petersen

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/1599132573-33818-1-git-send-email-wangxiongfeng2@huawei.comSigned-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 782e2efb
...@@ -242,7 +242,7 @@ static int tcmu_set_global_max_data_area(const char *str, ...@@ -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, static int tcmu_get_global_max_data_area(char *buffer,
const struct kernel_param *kp) 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 = { static const struct kernel_param_ops tcmu_global_max_data_area_op = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment