Re: [PATCH V2 2/7] platform/x86: lg-laptop.c: Use a small buffer instead of a full page for sysfs

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

 



On Sat, Nov 30, 2019 at 10:53 AM Matan Ziv-Av <matan@xxxxxxxxxxx> wrote:
>
> reader_mode_show() is now called from the driver itself, so only allow

Where?

> a small buffer for the boolean text.
> -       return snprintf(buffer, PAGE_SIZE, "%d\n", status);
> +       return snprintf(buffer, BUFFER_SIZE, "%d\n", status);
>  }

No, this doesn't make sense, Actually sprintf() can be used here.

--
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux