diff options
| author | Jacob Keller <jacob.e.keller@intel.com> | 2018-04-12 21:15:56 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-05-09 19:02:33 +0300 |
| commit | d63bb21a7e722fcaa6cc6a217f21fe25a9e2c89e (patch) | |
| tree | ba7162976d06cc347194290196b8a157161142ba /tools/perf/scripts/python/netdev-times.py | |
| parent | 2ead8ae110c6b62fe4d1d1bf04855e86582b96f5 (diff) | |
| download | linux-d63bb21a7e722fcaa6cc6a217f21fe25a9e2c89e.tar.xz | |
fm10k: use variadic arguments to fm10k_add_stat_strings
Instead of using a fixed prefix string we setup before each call to
fm10k_add_stat_strings, modify the helper to take variadic arguments and
pass them to vsnprintf. This requires changing the fm10k_stat strings to
take % format specifiers where necessary, but the resulting code is much
simpler.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
