diff options
| author | 2016-03-24 19:08:01 +0800 | |
|---|---|---|
| committer | 2016-03-24 14:33:06 -0400 | |
| commit | 8d71397bd2021f8ef68ae34d8bea431cc903fcdd (patch) | |
| tree | c898428bf93edd8806d7c1735b8d5a2c2a2a9a78 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | net: hns: fix a bug for cycle index (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 <xieqianqian@huawei.com>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
