summaryrefslogtreecommitdiff
path: root/tools/reporter.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-05-12 14:37:38 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-06-20 11:33:43 +0200
commit1b107adc1da26efe6e328e969c69d619436b0366 (patch)
tree2652df5b6ab9a4d1f5ea0172ba7291b35365c97b /tools/reporter.c
parent2078b842fb50d73f886fb93ff9e06c08977bf8a3 (diff)
downloadlvm2-1b107adc1da26efe6e328e969c69d619436b0366.tar.gz
report: add 'multiple_output' arg to report_init
Some reports may be reported several times with possible different selection criteria, just like command log report.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r--tools/reporter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/reporter.c b/tools/reporter.c
index d37694733..3df4baca5 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -1032,7 +1032,7 @@ static int _do_report(struct cmd_context *cmd, struct processing_handle *handle,
if (!(report_handle = report_init(cmd, single_args->options, single_args->keys, &report_type,
args->separator, args->aligned, args->buffered,
args->headings, args->field_prefixes, args->quoted,
- args->columns_as_rows, single_args->selection)))
+ args->columns_as_rows, single_args->selection, 0)))
goto_out;
handle->custom_handle = report_handle;
@@ -1462,7 +1462,7 @@ int report_format_init(struct cmd_context *cmd, dm_report_group_type_t *report_g
if (!(tmp_log_rh = report_init(NULL, single_args->options, single_args->keys, &single_args->report_type,
args.separator, args.aligned, args.buffered, args.headings,
args.field_prefixes, args.quoted, args.columns_as_rows,
- single_args->selection))) {
+ single_args->selection, 1))) {
log_error("Failed to create log report.");
goto bad;
}