X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=common.h;h=9c1e1ed384e199fd5e8761d8a37a34ab6787ad61;hb=84d0cd2f078f4cb15c318a0fef2515feab570375;hp=b1d6b31ecfe89e4136cee5a368e27534283c0bd6;hpb=adf77053d498af32ab4c6764b50d4265bed5996c;p=model-checker.git diff --git a/common.h b/common.h index b1d6b31..9c1e1ed 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)