Re: [PATCH] net: dsa: realtek: replace deprecated strncpy with ethtool_sprintf

2023-10-10 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 09 Oct 2023 22:47:37 + you wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > ethtool

Re: [PATCH] net: dsa: realtek: replace deprecated strncpy with ethtool_sprintf

2023-10-10 Thread Vladimir Oltean
On Mon, Oct 09, 2023 at 10:47:37PM +, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > ethtool_sprintf() is designed specifically for get_strings() usage. > Let

Re: [PATCH] net: dsa: realtek: replace deprecated strncpy with ethtool_sprintf

2023-10-10 Thread Linus Walleij
On Tue, Oct 10, 2023 at 12:47 AM Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous string > interfaces. > > ethtool_sprintf() is designed specifically for get_strings() usage. > Let's repl

Re: [PATCH] net: dsa: realtek: replace deprecated strncpy with ethtool_sprintf

2023-10-09 Thread Florian Fainelli
On 10/9/23 15:47, Justin Stitt wrote: `strncpy` is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. ethtool_sprintf() is designed specifically for get_strings() usage. Let's replace strncpy in favor of thi

[PATCH] net: dsa: realtek: replace deprecated strncpy with ethtool_sprintf

2023-10-09 Thread Justin Stitt
`strncpy` is deprecated for use on NUL-terminated destination strings [1] and as such we should prefer more robust and less ambiguous string interfaces. ethtool_sprintf() is designed specifically for get_strings() usage. Let's replace strncpy in favor of this more robust and easier to understand i