mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 16:47:42 +00:00
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:
parent
1b3e2d4ec0
commit
c9d2782988
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user