summaryrefslogtreecommitdiffstats
path: root/lib/format_text/format-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format_text/format-text.c')
-rw-r--r--lib/format_text/format-text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c
index 1653855c..f6511348 100644
--- a/lib/format_text/format-text.c
+++ b/lib/format_text/format-text.c
@@ -1183,7 +1183,7 @@ static int _mda_setup(const struct format_type *fmt,
if (pe_end > disk_size) {
log_error("Physical extents end beyond end of device %s!",
- dev_name(pv->dev));
+ pv_dev_name(pv));
return 0;
}
@@ -1204,7 +1204,7 @@ static int _mda_setup(const struct format_type *fmt,
/* Ensure it's not going to be bigger than the disk! */
if (start1 + mda_size1 > disk_size) {
log_warn("WARNING: metadata area fills disk leaving no "
- "space for data on %s.", dev_name(pv->dev));
+ "space for data on %s.", pv_dev_name(pv));
/* Leave some free space for rounding */
/* Avoid empty data area as could cause tools problems */
mda_size1 = disk_size - start1 - alignment * 2;
@@ -1647,7 +1647,7 @@ static int _text_pv_setup(const struct format_type *fmt,
vg->extent_size;
if (pe_count > UINT32_MAX) {
log_error("PV %s too large for extent size %s.",
- dev_name(pv->dev),
+ pv_dev_name(pv),
display_size(vg->cmd, (uint64_t) vg->extent_size));
return 0;
}