aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorQianqian Xie <[email protected]>2016-03-24 11:08:01 +0000
committerDavid S. Miller <[email protected]>2016-03-24 18:33:06 +0000
commit8d71397bd2021f8ef68ae34d8bea431cc903fcdd (patch)
treec898428bf93edd8806d7c1735b8d5a2c2a2a9a78 /net/switchdev/switchdev.c
parentnet: hns: fix a bug for cycle index (diff)
downloadkernel-8d71397bd2021f8ef68ae34d8bea431cc903fcdd.tar.gz
kernel-8d71397bd2021f8ef68ae34d8bea431cc903fcdd.zip
net: hns: optimizate fmt of snprintf()
It misses string format in function snprintf(), as below: snprintf(buff, ETH_GSTRING_LEN, g_gmac_stats_string[i].desc); It needs to add "%s" to fix it as below: snprintf(buff, ETH_GSTRING_LEN, "%s", g_gmac_stats_string[i].desc); Signed-off-by: Qianqian Xie <[email protected]> Signed-off-by: Kejian Yan <[email protected]> Signed-off-by: Yisen Zhuang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions