[PATCH] When logging to a file, stderr should go both to stderr and file
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index cfd27ce79104dc2678e9f80680e76a46006bce27..d70c5ca9c7bcf78baeb9c591da10d6f88e10dc02 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -233,7 +233,7 @@ void init_disk_util(struct thread_data *td)
                p = dirname(foo);
                sprintf(tmp, "%s/queue", p);
                if (stat(tmp, &st)) {
-                       fprintf(f_err, "unknown sysfs layout\n");
+                       log_err("unknown sysfs layout\n");
                        return;
                }
                sprintf(foo, "%s", p);