Re: [PATCH V2] RDMA: usnic: Fix misuse of sysfs_emit_at

2021-01-19 Thread Jason Gunthorpe
On Fri, Jan 15, 2021 at 04:36:50PM -0800, Joe Perches wrote: > In commit e28bf1f03b01 ("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

[PATCH V2] RDMA: usnic: Fix misuse of sysfs_emit_at

2021-01-15 Thread Joe Perches
In commit e28bf1f03b01 ("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