Skip to contentSkip to conversation

master - dmstats: fix <backtrace> in _display_info_cols()

PATCH Bryn Reeves 1 participant 1 message Jul 5, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e9c6fd3cff806344f1d32bc16daadd732d0acef6
Commit:        e9c6fd3cff806344f1d32bc16daadd732d0acef6
Parent:        0f64f2d5fcf6cc9fa6529bde918938755b644128
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Tue Jul 5 18:42:29 2016 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Tue Jul 5 19:53:17 2016 +0100

dmstats: fix <backtrace> in _display_info_cols()

Remove a false <backtrace> in _display_info_cols(): it is not an error if there are no regions to display.

Fixes commit e6724f03.

---
 tools/dmsetup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/dmsetup.c +2 -2
index 3ee9ed8..ed03c2b 100644
@@ -884,9 +884,9 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
 		if (!dm_stats_list(obj.stats, _program_id))
 			goto_out;
 
-		/* No regions to report */
+		/* No regions to report is not an error */
 		if (!dm_stats_get_nr_regions(obj.stats))
-			goto_out;
+			goto out;
 	}
 
 	/* group report with no groups? */