diff options
author | David Lechner <[email protected]> | 2023-09-21 09:43:44 -0500 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-09-24 18:54:55 +0100 |
commit | c78a96ab0f52a12b344882241019dd9070aa988c (patch) | |
tree | a2f9ab75a0d4542c5d839287a0f6ee0f4a1af8f6 /tools/perf/scripts/python/stackcollapse.py | |
parent | efea15e3c65d96bac17a4d8104e3fff7c07cc910 (diff) |
staging: iio: resolver: ad2s1210: fix ad2s1210_show_fault
When reading the fault attribute, an empty string was printed if the
fault register value was non-zero.
This is fixed by checking that the return value is less than zero
instead of not zero.
Also always print two hex digits while we are touching this line.
Signed-off-by: David Lechner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions