lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240912013846.3058728-1-peng.fan@oss.nxp.com>
Date: Thu, 12 Sep 2024 09:38:44 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: Thomas Renninger <trenn@...e.com>,
	Shuah Khan <shuah@...nel.org>,
	"John B. Wyatt IV" <jwyatt@...hat.com>,
	John Kacur <jkacur@...hat.com>,
	Peng Fan <peng.fan@....com>,
	linux-pm@...r.kernel.org (open list:CPU POWER MONITORING SUBSYSTEM),
	linux-kernel@...r.kernel.org (open list)
Subject: [PATCH 1/2] pm: cpupower: bench: print path fopen failed

From: Peng Fan <peng.fan@....com>

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

Signed-off-by: Peng Fan <peng.fan@....com>
---
 tools/power/cpupower/bench/parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/power/cpupower/bench/parse.c b/tools/power/cpupower/bench/parse.c
index e63dc11fa3a5..366b20f9ddf1 100644
--- a/tools/power/cpupower/bench/parse.c
+++ b/tools/power/cpupower/bench/parse.c
@@ -166,7 +166,7 @@ int prepare_config(const char *path, struct config *config)
 	configfile = fopen(path, "r");
 	if (configfile == NULL) {
 		perror("fopen");
-		fprintf(stderr, "error: unable to read configfile\n");
+		fprintf(stderr, "error: unable to read configfile: %s\n", path);
 		free(config);
 		return 1;
 	}
-- 
2.37.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ