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>
This commit is contained in:
Guixin Liu 2025-01-14 10:50:41 +08:00 committed by Martin K. Petersen
parent 1b3e2d4ec0
commit c9d2782988

View File

@ -117,9 +117,9 @@ static ssize_t target_stat_tgt_status_show(struct config_item *item,
char *page)
{
if (to_stat_tgt_dev(item)->export_count)
return snprintf(page, PAGE_SIZE, "activated");
return snprintf(page, PAGE_SIZE, "activated\n");
else
return snprintf(page, PAGE_SIZE, "deactivated");
return snprintf(page, PAGE_SIZE, "deactivated\n");
}
static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item,