projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend test_bitfield coverage
[babeltrace.git]
/
cli
/
babeltrace-log.c
diff --git
a/cli/babeltrace-log.c
b/cli/babeltrace-log.c
index c19f326b59233dd88cb7e926d71cecd300570a5b..d429ceb1d0f0edd8765b8588fb6aac2f95920f17 100644
(file)
--- a/
cli/babeltrace-log.c
+++ b/
cli/babeltrace-log.c
@@
-23,7
+23,8
@@
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
-#include <assert.h>
+#include <string.h>
+#include <babeltrace/assert-internal.h>
#include <babeltrace/babeltrace.h>
#include <popt.h>
#include <glib.h>
#include <babeltrace/babeltrace.h>
#include <popt.h>
#include <glib.h>
@@
-95,7
+96,7
@@
int parse_params(int argc, char *argv[], char **output_path,
}
*output_path = strdup(leftover);
}
*output_path = strdup(leftover);
-
assert
(*output_path);
+
BT_ASSERT
(*output_path);
goto end;
error:
goto end;
error:
@@
-121,8
+122,6
@@
int main(int argc, char *argv[])
"--component",
"dmesg:src.text.dmesg",
"--params",
"--component",
"dmesg:src.text.dmesg",
"--params",
- "read-from-stdin=yes",
- "--params",
NULL, /* no-extract-timestamp=? placeholder */
"--component",
"ctf:sink.ctf.fs",
NULL, /* no-extract-timestamp=? placeholder */
"--component",
"ctf:sink.ctf.fs",
@@
-143,12
+142,12
@@
int main(int argc, char *argv[])
}
if (no_extract_ts) {
}
if (no_extract_ts) {
- bt_argv[
7
] = "no-extract-timestamp=yes";
+ bt_argv[
5
] = "no-extract-timestamp=yes";
} else {
} else {
- bt_argv[
7
] = "no-extract-timestamp=no";
+ bt_argv[
5
] = "no-extract-timestamp=no";
}
}
- bt_argv[1
3
] = output_path;
+ bt_argv[1
1
] = output_path;
(void) g_spawn_sync(NULL, bt_argv, NULL,
G_SPAWN_CHILD_INHERITS_STDIN, NULL, NULL,
NULL, NULL, &retcode, &error);
(void) g_spawn_sync(NULL, bt_argv, NULL,
G_SPAWN_CHILD_INHERITS_STDIN, NULL, NULL,
NULL, NULL, &retcode, &error);
This page took
0.026925 seconds
and
4
git commands to generate.