From 377e720b262094306987e067131e766eb2322213 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 19 Aug 2019 02:58:22 +0000 Subject: [PATCH] scst: Add a trailing newline when showing the cpu_mask sysfs parameter git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8509 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index 65a1aa9f6..251587150 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -1972,6 +1972,8 @@ static ssize_t __scst_acg_cpu_mask_show(struct scst_acg *acg, char *buf) #endif if (!cpumask_equal(&acg->acg_cpu_mask, &default_cpu_mask)) res += sprintf(&buf[res], "\n%s\n", SCST_SYSFS_KEY_MARK); + else + res += sprintf(&buf[res], "\n"); return res; }