Re: [PATCH] staging: greybus: add newline to sysfs_emit return
From: Nam Cao
Date: Wed Sep 16 2026 - 17:28:04 EST
Omer PALA <palaomer100@xxxxxxxxx> writes:
> Add a terminating newline character to sysfs_emit() format strings in
> audio_manager_module.c.
>
> Without a trailing newline, reading sysfs attributes directly from user
> space (e.g., using `cat`) appends the command prompt to the output string,
> leading to broken formatting. Including '\n' ensures compliance with
> sysfs single-value formatting standards and prevents parsing issues in
> user space tools and scripts.
>
> Signed-off-by: Omer PALA <palaomer100@xxxxxxxxx>
Also no, sorry. See:
https://lore.kernel.org/linux-staging/anw3nOfSGKoq-1E_@stanley.mountain/
It is a good idea to look up the mailing list archive for other patches
attempting to do the same thing.
Nam