Re: [PATCH v2] staging: greybus: audio_manager_module: add terminating newlines to sysfs output
From: Dan Carpenter
Date: Mon Nov 23 2026 - 10:28:43 EST
On Mon, Nov 23, 2026 at 08:25:42PM +0545, Chhabilal Dangal wrote:
> The sysfs show callbacks for name, vid, pid, intf_id, ip_devices and
> op_devices print their value without a trailing newline, so a read
> from userspace runs into the next line. Other sysfs attributes end
> with a newline.
>
> Line-oriented readers treat an unterminated final line as incomplete:
> read(1) returns failure while still filling the variable, and wc -l
> reports zero lines for the file.
>
> These attributes have no Documentation/ABI entry and no in-tree
> readers. Adding the newline does change the user-visible output, so
> it is an ABI change for any out-of-tree consumer that reads the raw
> value. Please drop the patch if that is not acceptable.
Yeah, sorry I was unclear. All the users are out-of-tree. It's
user space after all. So we can't merge this unless you can
ensure that the out of tree users don't break.
regards,
dan carpenter