X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=common.cc;h=66b563a8ba6223a32a2c7d08067406fec0914c4b;hb=0a99a3c4c1c9aab7be017682b43ddf12d609ff4b;hp=9cb7239d0a32d6bdcda8e41b1af252c190469d9e;hpb=63c96bfb56ee71259fcbb4d57a2350424944e28a;p=model-checker.git diff --git a/common.cc b/common.cc index 9cb7239..66b563a 100644 --- a/common.cc +++ b/common.cc @@ -22,9 +22,7 @@ int model_out = STDOUT_FILENO; void print_trace(void) { #ifdef CONFIG_STACKTRACE - FILE *file = fdopen(model_out, "w"); - print_stacktrace(file); - fclose(file); + print_stacktrace(model_out); #else void *array[MAX_TRACE_LEN]; char **strings;