diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-19 18:57:40 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-19 18:58:30 +0100 |
commit | d7985ebead2a69f8139bf4ade0747b2a96f784c4 (patch) | |
tree | 9d66c99399b777ba1f19447a07f29bbbe8c8df8e | |
parent | 4a52a9212cc5d3ae90196776f28dbfb319002c74 (diff) | |
download | lvm2-d7985ebead2a69f8139bf4ade0747b2a96f784c4.tar.gz |
thin: fix error path
Print pool name and not the origin name.
-rw-r--r-- | lib/metadata/lv_manip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index ca2a706e4..879cd51f2 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -7085,8 +7085,8 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, if (thin_pool_was_active < 0) thin_pool_was_active = 0; if (!activate_lv_excl(cmd, pool_lv)) { - log_error("Failed to activate thin pool %s/%s.", - origin_lv->vg->name, origin_lv->name); + log_error("Failed to activate thin pool %s.", + display_lvname(pool_lv)); goto revert_new_lv; } if (!lv_is_active(pool_lv)) { |