Commit c9d27829 authored by Guixin Liu's avatar Guixin Liu Committed by Martin K. Petersen
Browse files

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: default avatarGuixin Liu <kanie@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250114025041.97301-1-kanie@linux.alibaba.com


Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 1b3e2d4e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,