projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the verbose parameter to the legacy text options
[babeltrace.git]
/
plugins
/
text
/
text.c
diff --git
a/plugins/text/text.c
b/plugins/text/text.c
index 163f3c2ced15c68f20a33f11eb602998cfe7fda1..44887b6fe11498470cac076f4d4deb9661a70318 100644
(file)
--- a/
plugins/text/text.c
+++ b/
plugins/text/text.c
@@
-54,6
+54,7
@@
const char *plugin_options[] = {
"clock-seconds",
"clock-date",
"clock-gmt",
"clock-seconds",
"clock-date",
"clock-gmt",
+ "verbose",
"name-default", /* show/hide */
"name-payload",
"name-context",
"name-default", /* show/hide */
"name-payload",
"name-context",
@@
-417,6
+418,13
@@
enum bt_component_status apply_params(struct text_component *text,
}
text->options.clock_gmt = value;
}
text->options.clock_gmt = value;
+ value = false; /* Default. */
+ ret = apply_one_bool("verbose", params, &value, NULL);
+ if (ret != BT_COMPONENT_STATUS_OK) {
+ goto end;
+ }
+ text->options.verbose = value;
+
/* Names. */
ret = apply_one_string("name-default", params, &str);
if (ret != BT_COMPONENT_STATUS_OK) {
/* Names. */
ret = apply_one_string("name-default", params, &str);
if (ret != BT_COMPONENT_STATUS_OK) {
This page took
0.023169 seconds
and
4
git commands to generate.