summaryrefslogtreecommitdiff
path: root/tools/pvck.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvck.c')
-rw-r--r--tools/pvck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pvck.c b/tools/pvck.c
index a0f567eeb..595c71884 100644
--- a/tools/pvck.c
+++ b/tools/pvck.c
@@ -3033,7 +3033,7 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
pv_name = argv[0];
if (!(dev = dev_cache_get(cmd, pv_name, cmd->filter))) {
- log_error("No device found for %s %s.", pv_name, dev_cache_filtered_reason(pv_name));
+ log_error("Device %s: %s.", pv_name, devname_error_reason(pv_name));
return ECMD_FAILED;
}
}
@@ -3047,7 +3047,7 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
def = get_devicefile(pv_name);
if (!dev && !def) {
- log_error("No device found for %s %s.", pv_name, dev_cache_filtered_reason(pv_name));
+ log_error("Device %s: %s.", pv_name, devname_error_reason(pv_name));
return ECMD_FAILED;
}
}
@@ -3136,7 +3136,7 @@ int pvck(struct cmd_context *cmd, int argc, char **argv)
pv_name = argv[i];
if (!(dev = dev_cache_get(cmd, argv[i], cmd->filter))) {
- log_error("Device %s %s.", pv_name, dev_cache_filtered_reason(pv_name));
+ log_error("Device %s: %s.", pv_name, devname_error_reason(pv_name));
continue;
}