]> Git Repo - linux.git/commitdiff
scsi: target: core: Add line break to status show
authorGuixin Liu <[email protected]>
Tue, 14 Jan 2025 02:50:41 +0000 (10:50 +0800)
committerMartin K. Petersen <[email protected]>
Tue, 21 Jan 2025 17:19:04 +0000 (12:19 -0500)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Mike Christie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/target/target_core_stat.c

index c42cbde8a31b3a338da412f7ec89751c0228af48..210648a0092e2703c551b4a6a128f83932a8a7ce 100644 (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,
This page took 0.058866 seconds and 4 git commands to generate.