]> sourceware.org Git - lvm2.git/commitdiff
cleanup: simplify pv name print
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 18 Mar 2014 23:01:00 +0000 (00:01 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 18 Mar 2014 23:58:01 +0000 (00:58 +0100)
pv_vg_name() now already hides orphans.

lib/metadata/metadata.c
lib/metadata/pv_manip.c

index ff14e16c724268655b03a10fdc48af7b04b24c8e..c79f223db3e7961388abbbc4b900113948f196bd 100644 (file)
@@ -1408,7 +1408,7 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name,
                log_warn("WARNING: Forcing physical volume creation on "
                          "%s%s%s%s", name,
                          !is_orphan(pv) ? " of volume group \"" : "",
-                         !is_orphan(pv) ? pv_vg_name(pv) : "",
+                         pv_vg_name(pv),
                          !is_orphan(pv) ? "\"" : "");
        }
 
index cb19be2533d709dae1c240de5e1b9587bc618201..36135153e187491c1b0a07f598be5c627369ad01 100644 (file)
@@ -716,7 +716,7 @@ static int pvremove_check(struct cmd_context *cmd, const char *name,
                log_warn("WARNING: Wiping physical volume label from "
                          "%s%s%s%s", name,
                          !is_orphan(pv) ? " of volume group \"" : "",
-                         !is_orphan(pv) ? pv_vg_name(pv) : "",
+                         pv_vg_name(pv),
                          !is_orphan(pv) ? "\"" : "");
        }
 
This page took 0.034699 seconds and 5 git commands to generate.