sh->orig_report_type = VGS;
- if (!report_for_selection(sh, NULL, vg, NULL))
- return_0;
+ if (!report_for_selection(sh, NULL, vg, NULL)) {
+ log_error("Selection failed for VG %s.", vg->name);
+ return 0;
+ }
sh->orig_report_type = 0;
*selected = sh->selected;
sh->orig_report_type = LVS;
- if (!report_for_selection(sh, NULL, vg, lv))
- return_0;
+ if (!report_for_selection(sh, NULL, vg, lv)) {
+ log_error("Selection failed for LV %s.", lv->name);
+ return 0;
+ }
sh->orig_report_type = 0;
*selected = sh->selected;
sh->orig_report_type = PVS;
- if (!report_for_selection(sh, pv, vg, NULL))
- return_0;
+ if (!report_for_selection(sh, pv, vg, NULL)) {
+ log_error("Selection failed for PV %s.", dev_name(pv->dev));
+ return 0;
+ }
sh->orig_report_type = 0;
*selected = sh->selected;