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

From: Divya.Koppera
Date: Fri Dec 08 2023 - 06:03:50 EST


> 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@xxxxxxxxxx>

Reviewed-by: Divya Koppera <divya.koppera@xxxxxxxxxxxxx>