1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tools: vgmknodes: use display_lvname

This commit is contained in:
Peter Rajnoha 2024-08-14 14:20:55 +02:00
parent 845a65a755
commit 4efed9ee99
No known key found for this signature in database
GPG Key ID: E776664036DF84AB

View File

@ -20,7 +20,7 @@ static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv,
{ {
if (arg_is_set(cmd, refresh_ARG) && lv_is_visible(lv)) { if (arg_is_set(cmd, refresh_ARG) && lv_is_visible(lv)) {
if (!lv_refresh(cmd, lv)) { if (!lv_refresh(cmd, lv)) {
log_error("Refresh failed for %s/%s.", lv->vg->name, lv->name); log_error("Refresh failed for %s.", display_lvname(lv));
return_ECMD_FAILED; return_ECMD_FAILED;
} }
sync_local_dev_names(cmd); sync_local_dev_names(cmd);