[PATCH] When logging to a file, stderr should go both to stderr and file
diff --git a/stat.c b/stat.c
index cfd27ce..d70c5ca 100644
--- a/stat.c
+++ b/stat.c
@@ -233,7 +233,7 @@
 		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);