Long line style fix + comment
[fio.git] / log.c
diff --git a/log.c b/log.c
index 611aa9f9aa11e68bfe80c8f00d3b2c245de67636..01e4ad0b37c8fd5e954106bb86079856345ce579 100644 (file)
--- a/log.c
+++ b/log.c
@@ -388,7 +388,7 @@ static int init_iolog_write(struct thread_data *td)
        FILE *f;
        unsigned int i;
 
-       f = fopen(td->o.write_iolog_file, "w+");
+       f = fopen(td->o.write_iolog_file, "a");
        if (!f) {
                perror("fopen write iolog");
                return 1;
@@ -455,7 +455,7 @@ void __finish_log(struct io_log *log, const char *name)
        unsigned int i;
        FILE *f;
 
-       f = fopen(name, "w");
+       f = fopen(name, "a");
        if (!f) {
                perror("fopen log");
                return;