Re: [Intel-wired-lan] [PATCH net-next v5 1/3] ethtool: Implement ethtool_puts()

From: Przemek Kitszel
Date: Thu Dec 07 2023 - 02:13:41 EST


On 12/7/23 00:16, justinstitt@xxxxxxxxxx wrote:
Use strscpy() to implement ethtool_puts().

Functionally the same as ethtool_sprintf() when it's used with two
arguments or with just "%s" format specifier.

Signed-off-by: Justin Stitt <justinstitt@xxxxxxxxxx>
---
include/linux/ethtool.h | 13 +++++++++++++
net/ethtool/ioctl.c | 7 +++++++
2 files changed, 20 insertions(+)



Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@xxxxxxxxx>