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:
@ -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;
|
||||
|
Reference in New Issue
Block a user