X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=common.h;h=9c1e1ed384e199fd5e8761d8a37a34ab6787ad61;hp=b1d6b31ecfe89e4136cee5a368e27534283c0bd6;hb=80f5924fb6c148ecb703dfeae5a751948062588b;hpb=9a9c5146d0bb00385367066ae9d657adb3edc50d diff --git a/common.h b/common.h index b1d6b31e..9c1e1ed3 100644 --- a/common.h +++ b/common.h @@ -8,7 +8,9 @@ #include #include "config.h" -#define model_print(fmt, ...) do { printf(fmt, ##__VA_ARGS__); } while (0) +extern FILE *model_out; + +#define model_print(fmt, ...) do { fprintf(model_out, fmt, ##__VA_ARGS__); } while (0) #ifdef CONFIG_DEBUG #define DEBUG(fmt, ...) do { model_print("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)