treewide: use ethtool_puts instead of memcpy

The former is a safer and more readable version.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-12-10 15:12:24 -08:00
committed by Christian Marangi
parent 511c7ff032
commit 89ff407d68
4 changed files with 4 additions and 6 deletions

View File

@@ -1953,7 +1953,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
+ switch (stringset) {
+ case ETH_SS_STATS:
+ for (i = 0; i < ARRAY_SIZE(ipqess_stats); i++)
+ ethtool_sprintf(&p, ipqess_stats[i].string);
+ ethtool_puts(&p, ipqess_stats[i].string);
+ break;
+ }
+}