[PATCH net-next v5 3/3] net: Convert some ethtool_sprintf() to ethtool_puts()

Andrew Lunn andrew at lunn.ch
Thu Dec 7 07:28:55 PST 2023


On Wed, Dec 06, 2023 at 11:16:12PM +0000, justinstitt at google.com wrote:
> This patch converts some basic cases of ethtool_sprintf() to
> ethtool_puts().
> 
> The conversions are used in cases where ethtool_sprintf() was being used
> with just two arguments:
> |       ethtool_sprintf(&data, buffer[i].name);
> or when it's used with format string: "%s"
> |       ethtool_sprintf(&data, "%s", buffer[i].name);
> which both now become:
> |       ethtool_puts(&data, buffer[i].name);
> 
> Signed-off-by: Justin Stitt <justinstitt at google.com>

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the Linux-mediatek mailing list