Thread (8 messages) 8 messages, 2 authors, 2023-10-28

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

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2023-10-27 23:41:34
Also in: bpf, intel-wired-lan, linux-hyperv, linux-mediatek, lkml

On Fri, Oct 27, 2023 at 10:05:35PM +0000, Justin Stitt 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@google.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help