mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 06:21:52 -06:00
Fix bogus fopen mode.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3038 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7e1543c23b
commit
11fcfab4b0
1 changed files with 1 additions and 1 deletions
2
exec.c
2
exec.c
|
@ -1161,7 +1161,7 @@ void cpu_set_log(int log_flags)
|
||||||
{
|
{
|
||||||
loglevel = log_flags;
|
loglevel = log_flags;
|
||||||
if (loglevel && !logfile) {
|
if (loglevel && !logfile) {
|
||||||
logfile = fopen(logfilename, log_append ? "wa" : "w");
|
logfile = fopen(logfilename, log_append ? "a" : "w");
|
||||||
if (!logfile) {
|
if (!logfile) {
|
||||||
perror(logfilename);
|
perror(logfilename);
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue