target:tcmu:add '\n' when return user space
Mike Christie
Acked-byQuoted 15 lines · tangwenji
From: tangwenji <[email protected]>
In function
tcmu_get_global_max_data_areareturn string should include '\n'.Signed-off-by tangwenji <[email protected]>--- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/target/target_core_user.c +0
-0
drivers/target/target_core_user.c static int tcmu_set_global_max_data_area(const char *str, · line 250
Quoted 8 lines
drivers/target/target_core_user.c +1
-1@@ -244,7 +244,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 = {
Acked-by Mike Christie <[email protected]>