projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: make warnings (partial errors) visible
[babeltrace.git]
/
converter
/
babeltrace.c
diff --git
a/converter/babeltrace.c
b/converter/babeltrace.c
index c9007c3d9c9f2f5c467c4e9435d4055dd474a06c..bcc9657e298ac07b84b72ab5e38b2a4cc1f308f1 100644
(file)
--- a/
converter/babeltrace.c
+++ b/
converter/babeltrace.c
@@
-44,6
+44,8
@@
#include <babeltrace/ctf-ir/metadata.h> /* for clocks */
#include <babeltrace/ctf-ir/metadata.h> /* for clocks */
+#define PARTIAL_ERROR_SLEEP 3 /* 3 seconds */
+
#define DEFAULT_FILE_ARRAY_SIZE 1
static char *opt_input_format, *opt_output_format;
/* Pointer into const argv */
#define DEFAULT_FILE_ARRAY_SIZE 1
static char *opt_input_format, *opt_output_format;
/* Pointer into const argv */
@@
-572,6
+574,14
@@
int main(int argc, char **argv)
goto error_td_write;
}
goto error_td_write;
}
+ /*
+ * Errors happened when opening traces, but we continue anyway.
+ * sleep to let user see the stderr output before stdout.
+ */
+ if (partial_error) {
+ sleep(PARTIAL_ERROR_SLEEP);
+ }
+
ret = convert_trace(td_write, ctx);
if (ret) {
fprintf(stderr, "Error printing trace.\n\n");
ret = convert_trace(td_write, ctx);
if (ret) {
fprintf(stderr, "Error printing trace.\n\n");
This page took
0.022582 seconds
and
4
git commands to generate.