projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3518ae7
)
s390/qeth: use ethtool_sprintf()
author
Julian Wiedmann
<jwi@linux.ibm.com>
Fri, 11 Jun 2021 07:33:36 +0000
(09:33 +0200)
committer
David S. Miller
<davem@davemloft.net>
Fri, 11 Jun 2021 19:49:15 +0000
(12:49 -0700)
Use a recently introduced helper to fill our ethtool stats strings.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_ethtool.c
b/drivers/s390/net/qeth_ethtool.c
index 190dac2065df47c0358e66d8c43708cf350df1ae..2c4cb300a8fc65caeedb022a2566cbdaa291b453 100644
(file)
--- a/
drivers/s390/net/qeth_ethtool.c
+++ b/
drivers/s390/net/qeth_ethtool.c
@@
-80,10
+80,8
@@
static void qeth_add_stat_strings(u8 **data, const char *prefix,
{
unsigned int i;
- for (i = 0; i < size; i++) {
- snprintf(*data, ETH_GSTRING_LEN, "%s%s", prefix, stats[i].name);
- *data += ETH_GSTRING_LEN;
- }
+ for (i = 0; i < size; i++)
+ ethtool_sprintf(data, "%s%s", prefix, stats[i].name);
}
static int qeth_get_sset_count(struct net_device *dev, int stringset)