Skip to content

Commit c9d2782

Browse files
guixinliu1995martinkpetersen
authored andcommitted
scsi: target: core: Add line break to status show
To ensure the output is not tangled with the shell prompt, add a line break to clearly display the status. Signed-off-by: Guixin Liu <kanie@linux.alibaba.com> Link: https://lore.kernel.org/r/20250114025041.97301-1-kanie@linux.alibaba.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1b3e2d4 commit c9d2782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/target/target_core_stat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ static ssize_t target_stat_tgt_status_show(struct config_item *item,
117117
char *page)
118118
{
119119
if (to_stat_tgt_dev(item)->export_count)
120-
return snprintf(page, PAGE_SIZE, "activated");
120+
return snprintf(page, PAGE_SIZE, "activated\n");
121121
else
122-
return snprintf(page, PAGE_SIZE, "deactivated");
122+
return snprintf(page, PAGE_SIZE, "deactivated\n");
123123
}
124124

125125
static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item,

0 commit comments

Comments
 (0)