diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2022-11-22 09:40:52 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-11-30 13:46:47 +0300 |
commit | 71ae6305ad41cfd1ac5aa91d356e71c7a537df2e (patch) | |
tree | 707c5cbf87e5cb47876fc4d5c0a5db86951b110c /Documentation/hwmon/adm1177.rst | |
parent | dea681c91d3cd5326f87d0a3c93079573e22ce9a (diff) | |
download | linux-71ae6305ad41cfd1ac5aa91d356e71c7a537df2e.tar.xz |
selftests/powerpc: Move perror closer to its use
Right now, if perf_event_open() fails for the systemwide tests, error
report is printed too late, sometimes after subsequent system calls.
Move use of perror() to the main function, just after the syscall.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/372ac78c27899f1f612fbd6ac796604a4a9310aa.1669096083.git.naveen.n.rao@linux.vnet.ibm.com
Diffstat (limited to 'Documentation/hwmon/adm1177.rst')
0 files changed, 0 insertions, 0 deletions