aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2015-02-12 15:15:17 +0100
committerGuenter Roeck <[email protected]>2015-03-09 09:59:35 -0700
commita0fc74d42d2215496302a0e2c03e9f2db30cc1b7 (patch)
treebcbe52b3a1d0e1ad4aeb5df2e4649d0dd72aa291 /tools/perf/scripts/python/export-to-postgresql.py
parent1055b5f90424056432430fa06f94f1d12db07fba (diff)
hwmon: (ibmpex) Allow format string checking
The only difference between the three power_sensor_name_templates is whether there is a suffix of "", "_lowest" or "_highest". We might as well pull those into an array and use a literal format string, allowing gcc to do type checking of the arguments to sprintf. Incidentially, the same three suffixes are used in the temp_sensor_name_templates case, so we end up eliminating one static array. Signed-off-by: Rasmus Villemoes <[email protected]> [Guenter Roeck: Fixed line length over 80 characters] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions