mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: do not attempt to output column headings with --rows
Columns-as-rows output does not use _report_headings(); don't try to call it when rh->flags & DM_REPORT_OUTPUT_COLUMNS_AS_ROWS.
This commit is contained in:
parent
54815fff06
commit
3638c05ec9
@ -3994,6 +3994,9 @@ static int _report_headings(struct dm_report *rh)
|
|||||||
|
|
||||||
int dm_report_column_headings(struct dm_report *rh)
|
int dm_report_column_headings(struct dm_report *rh)
|
||||||
{
|
{
|
||||||
|
/* Columns-as-rows does not use _report_headings. */
|
||||||
|
if (rh->flags & DM_REPORT_OUTPUT_COLUMNS_AS_ROWS)
|
||||||
|
return 1;
|
||||||
return _report_headings(rh);
|
return _report_headings(rh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user