Re: [PATCH 2/3] hwmon: (occ) Fix missing newline in occ_show_extended()
From: Guenter Roeck
Date: Mon Mar 30 2026 - 16:22:03 EST
On Thu, Mar 26, 2026 at 10:45:29PM +0000, Pradhan, Sanman wrote:
> From: Sanman Pradhan <psanman@xxxxxxxxxxx>
>
> In occ_show_extended() case 0, when the EXTN_FLAG_SENSOR_ID flag
> is set, the sysfs_emit format string "%u" is missing the trailing
> newline that the sysfs ABI expects. The else branch correctly uses
> "%4phN\n", and all other show functions in this file include the
> trailing newline.
>
> Add the missing "\n" for consistency and correct sysfs output.
>
> Fixes: c10e753d43eb ("hwmon (occ): Add sensor types and versions")
> Signed-off-by: Sanman Pradhan <psanman@xxxxxxxxxxx>
Applied.
Thanks,
Guenter