commit | 3b70d7e51e0b672a8b337c57c8faf865c0b7f415 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Thu Jun 08 21:48:46 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Thu Jun 08 21:48:46 2006 +0200 |
tree | c8a1eb7b9c873fceba50825c8f96bbf635086964 | |
parent | eb8bbf48e79a8c6afd3c84e3d64263d10ee45daa [diff] [blame] |
[PATCH] When logging to a file, stderr should go both to stderr and file
diff --git a/fio.h b/fio.h index f6c2ee3..2d57227 100644 --- a/fio.h +++ b/fio.h
@@ -441,4 +441,13 @@ (*sem)++; } +/* + * If logging output to a file, stderr should go to both stderr and f_err + */ +#define log_err(args...) do { \ + fprintf(f_err, ##args); \ + if (f_err != stderr) \ + fprintf(stderr, ##args); \ + } while (0) + #endif