From 5794473c787981ecf237bfdfce6697493144a501 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 7 Apr 2013 13:08:30 +0000 Subject: Get rid of perror() It prints to stderr and that's not what we want necesserily; using msg_*err gives us more control. Corresponding to flashrom svn r1668. Signed-off-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- cli_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli_output.c') diff --git a/cli_output.c b/cli_output.c index 54b09a6..476b2bf 100644 --- a/cli_output.c +++ b/cli_output.c @@ -50,7 +50,7 @@ int open_logfile(const char * const filename) return 1; } if ((logfile = fopen(filename, "w")) == NULL) { - perror(filename); + msg_gerr("Error: opening log file \"%s\" failed: %s\n", filename, strerror(errno)); return 1; } return 0; -- cgit v1.1