summaryrefslogtreecommitdiffstats
path: root/cli_output.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-04-07 13:08:30 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-04-07 13:08:30 +0000
commit363fd7e827e3b630f916f9d2bdda262180274789 (patch)
tree917a00cb091798c90273bf5d45bb86e4160de46a /cli_output.c
parent73dc0db7258121f260eeda04f50531f3eda943ee (diff)
downloadflashrom-363fd7e827e3b630f916f9d2bdda262180274789.tar.gz
flashrom-363fd7e827e3b630f916f9d2bdda262180274789.tar.bz2
flashrom-363fd7e827e3b630f916f9d2bdda262180274789.zip
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 <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'cli_output.c')
-rw-r--r--cli_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli_output.c b/cli_output.c
index 54b09a67e..476b2bf00 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;