From 57f8b33d5de8c93ee48f4d1caa69ac3fd45d05d0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 2 Jul 2014 09:50:04 +0200 Subject: [PATCH] cleanup: a bit better error message --- tools/lvconvert.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 085fdcd17..4f294164e 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2759,13 +2759,12 @@ static int _lvconvert_to_pool(struct cmd_context *cmd, return 0; } if (metadata_lv == pool_lv) { - log_error("Can't use same LV for thin pool data and metadata LV %s.", - lp->pool_metadata_lv_name); + log_error("Can't use same LV for thin pool data and metadata LV %s/%s.", + metadata_lv->vg->name, metadata_lv->name); return 0; } if (lv_is_thin_type(metadata_lv)) { - log_error("Can't use thin pool logical volume %s/%s " - "for thin pool metadata.", + log_error("Can't use thin type LV %s/%s for thin pool metadata.", metadata_lv->vg->name, metadata_lv->name); return 0; } -- 2.43.5