pm: cpupower: bench: print config file path when open cpufreq-bench.conf fails
authorPeng Fan <peng.fan@nxp.com>
Thu, 19 Sep 2024 12:08:11 +0000 (20:08 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 30 Sep 2024 15:40:30 +0000 (09:40 -0600)
commitc0dd6507ab20066f39993065a73d2687b97a848d
treee5bb52c2c4c1971854871b7f460ed8f98e631c22
parent7043a9f77c2ad8e937850fce6f95ab66592d624a
pm: cpupower: bench: print config file path when open cpufreq-bench.conf fails

Print out the config file path when fopen failed. It will be easy
for users to know where to create the file.

Since we are here, use strerror to drop the usage of perror.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/bench/parse.c