diff options
author | Qianqian Xie <[email protected]> | 2016-03-24 19:08:01 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-03-24 14:33:06 -0400 |
commit | 8d71397bd2021f8ef68ae34d8bea431cc903fcdd (patch) | |
tree | c898428bf93edd8806d7c1735b8d5a2c2a2a9a78 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 526131262223e9315bfd41213f5a76e792f184ff (diff) |
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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions