Re: [PATCH net-next] drivers/net/ethernet/qualcomm/emac: Use strscpy() to copy the ethtool strings

From: Timur Tabi

Date: Tue Jun 09 2026 - 11:28:53 EST


On Tue, Jun 9, 2026 at 10:08 AM Timur Tabi <timur@xxxxxxxxxx> wrote:

> It would be better to replace this with a call to ethtool_sprintf(),
> which already takes ETH_GSTRING_LEN into account. And may as well
> update the ETH_SS_STATS case underneath it.

Actually, on second thought, I take that back. There are no format
strings, so no need for sprintf.