mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
In commite28bf1f03b("RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit") I mistakenly used len = sysfs_emit_at to overwrite the last trailing space of potentially multiple entry output. Instead use a more common style by removing the trailing space from the output formats and adding a prefixing space to the contination formats and converting the final terminating output newline from the defective len = sysfs_emit_at(buf, len, "\n"); to the now appropriate and typical len += sysfs_emit_at(buf, len, "\n"); Fixes:e28bf1f03b("RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit") Link: https://lore.kernel.org/r/[email protected] Reported-by: James Bottomley <[email protected]> Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>