projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
execution: remove redundant condition, reword doc for promises_may_allow
[model-checker.git]
/
common.cc
diff --git
a/common.cc
b/common.cc
index 9cb7239d0a32d6bdcda8e41b1af252c190469d9e..26f6d5d8cd42bdd28484c231a995b5fbe84c633b 100644
(file)
--- a/
common.cc
+++ b/
common.cc
@@
-22,9
+22,7
@@
int model_out = STDOUT_FILENO;
void print_trace(void)
{
#ifdef CONFIG_STACKTRACE
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;
#else
void *array[MAX_TRACE_LEN];
char **strings;
@@
-149,6
+147,8
@@
void print_program_output()
{
char buf[200];
{
char buf[200];
+ model_print("---- BEGIN PROGRAM OUTPUT ----\n");
+
/* Gather all program output */
fflush(stdout);
/* Gather all program output */
fflush(stdout);
@@
-167,5
+167,7
@@
void print_program_output()
ret -= res;
}
}
ret -= res;
}
}
+
+ model_print("---- END PROGRAM OUTPUT ----\n");
}
#endif /* ! CONFIG_DEBUG */
}
#endif /* ! CONFIG_DEBUG */