1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

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>
This commit is contained in:
Stefan Tauner
2013-04-07 13:08:30 +00:00
parent 73dc0db725
commit 363fd7e827
3 changed files with 17 additions and 17 deletions

View File

@ -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;