mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst: Fix garbage in trace_level files
'hd /sys/kernel/scst_tgt/trace_level' shows a series of extraneous nul
chars at the end of the first line.
Fixes: 9cbca53830 ("scst: Replace sprintf() with scnprintf() in sysfs callbacks")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
This commit is contained in:
committed by
Gleb Chesnokov
parent
1b78d5076d
commit
189ab46a97
@@ -156,8 +156,8 @@ static ssize_t scst_trace_level_show(const struct scst_trace_log *local_tbl,
|
||||
{
|
||||
ssize_t ret = 0;
|
||||
|
||||
ret += scst_read_trace_tbl(scst_trace_tbl, buf, log_level, ret);
|
||||
ret += scst_read_trace_tbl(local_tbl, buf, log_level, ret);
|
||||
ret = scst_read_trace_tbl(scst_trace_tbl, buf, log_level, ret);
|
||||
ret = scst_read_trace_tbl(local_tbl, buf, log_level, ret);
|
||||
|
||||
ret += sysfs_emit_at(buf, ret,
|
||||
"\n\n\nUsage:\n"
|
||||
|
||||
Reference in New Issue
Block a user