From 4d70e7bf780c2499f9c279ec48697df7640ca8a8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 12 Jul 2023 13:50:21 +0200 Subject: [PATCH] debug: use display_lvname --- lib/metadata/metadata.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 07244bf6a..b311bf69e 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -2642,8 +2642,8 @@ int vg_validate(struct volume_group *vg) if (!strcmp(vg->lock_type, "sanlock")) { if (dm_hash_lookup(vhash.lv_lock_args, lvl->lv->lock_args)) { - log_error(INTERNAL_ERROR "LV %s/%s has duplicate lock_args %s.", - vg->name, lvl->lv->name, lvl->lv->lock_args); + log_error(INTERNAL_ERROR "LV %s has duplicate lock_args %s.", + display_lvname(lvl->lv), lvl->lv->lock_args); r = 0; } @@ -2657,15 +2657,15 @@ int vg_validate(struct volume_group *vg) if (lv_is_cache_vol(lvl->lv)) { log_debug("lock_args will be ignored on cache vol"); } else if (lvl->lv->lock_args) { - log_error(INTERNAL_ERROR "LV %s/%s shouldn't have lock_args", - vg->name, lvl->lv->name); + log_error(INTERNAL_ERROR "LV %s shouldn't have lock_args %s.", + display_lvname(lvl->lv), lvl->lv->lock_args); r = 0; } } } else { if (lvl->lv->lock_args) { - log_error(INTERNAL_ERROR "LV %s/%s with no lock_type has lock_args %s", - vg->name, lvl->lv->name, lvl->lv->lock_args); + log_error(INTERNAL_ERROR "LV %s with no lock_type has lock_args %s.", + display_lvname(lvl->lv), lvl->lv->lock_args); r = 0; } }