From 9718fd24963679c70837dca5d11a803facb9021f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 21 Mar 2024 21:01:57 +0100 Subject: [PATCH] debug: print names of tracked LVs Debug was printing passed in LV name, but it's more usable to see names of LVs 'tracked' for removal. --- lib/activate/dev_manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index d7b3c4b98..0d0a15b40 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -2436,8 +2436,8 @@ static int _add_dev_to_dtree(struct dev_manager *dm, struct dm_tree *dtree, } if (info.exists && dm->track_pending_delete) { - log_debug_activation("Tracking pending delete for %s (%s).", - display_lvname(lv), dlid); + log_debug_activation("Tracking pending delete for %s%s%s (%s).", + display_lvname(lv), layer ? "-" : "", layer ? : "", dlid); if (!str_list_add(dm->cmd->pending_delete_mem, &dm->cmd->pending_delete, dlid)) return_0; } @@ -2699,8 +2699,8 @@ static int _add_cvol_subdev_to_dtree(struct dev_manager *dm, struct dm_tree *dtr return 0; } if (dm->track_pending_delete) { - log_debug_activation("Tracking pending delete for %s %s (%s).", - layer, display_lvname(lv), dlid); + log_debug_activation("Tracking pending delete for %s-%s (%s).", + display_lvname(pool_lv), layer, dlid); if (!str_list_add(mem, &dm->cmd->pending_delete, dlid)) return_0; }