Re: [PATCH] acpi/nfit: Use sysfs_emit() for all attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 19, 2023 at 06:15:13PM -0800, Dan Williams wrote:
> sysfs_emit() properly handles the PAGE_SIZE limitation of populating
> sysfs attribute buffers. Clean up the deprecated usage of sprintf() in
> all of nfit's sysfs show() handlers.
> 
> Reported-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
> Closes: http://lore.kernel.org/0d1bf461-d9e8-88bc-b7e2-b03b56594213@xxxxxxxxxxxxxxx
> Cc: Alison Schofield <alison.schofield@xxxxxxxxx>
> Cc: Dave Jiang <dave.jiang@xxxxxxxxx>
> Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>


Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>


> ---
>  drivers/acpi/nfit/core.c |   44 ++++++++++++++++++++++----------------------
>  1 file changed, 22 insertions(+), 22 deletions(-)
> 




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux