Skip to contentSkip to conversation

target:tcmu:add '\n' when return user space

PATCH New tangwenji 1 participant 1 message Mar 10, 2019

Subsystems (2)
lore
Share & tools
lore

tangwenji

author
#0 lore raw

PATCH 1/1 target:tcmu:add '\n' when return user space

From: tangwenji <[email protected]>

In function tcmu_get_global_max_data_area return string should include '\n'.

---
 drivers/target/target_core_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_user.c +1 -1
index 5831e0e..50229c1 100644
@@ -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 = {
Signature · 1 line
2.5.0.windows.1