aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNikolaus Schulz <[email protected]>2017-03-24 13:41:51 +0100
committerJonathan Cameron <[email protected]>2017-04-02 11:14:49 +0100
commit7fd6592d1287046f61bfd3cda3c03cd35be490f7 (patch)
treea47926f7b3e59dbb76684b9f18a1c3f2f2ae9082 /tools/perf/scripts/python/export-to-postgresql.py
parent51f528a1636f352ad776a912ac86026ac7a89a2a (diff)
iio: core: Fix IIO_VAL_FRACTIONAL_LOG2 for negative values
Fix formatting of negative values of type IIO_VAL_FRACTIONAL_LOG2 by switching from do_div(), which can't handle negative numbers, to div_s64_rem(). Also use shift_right for shifting, which is safe with negative values. Signed-off-by: Nikolaus Schulz <[email protected]> Reviewed-by: Lars-Peter Clausen <[email protected]> Cc: [email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions