|
|
429878 |
From a5a2d5fa1ec47a5a548db4cf435dc84de7ce7c31 Mon Sep 17 00:00:00 2001
|
|
|
429878 |
From: David Teigland <teigland@redhat.com>
|
|
|
429878 |
Date: Wed, 20 Oct 2021 16:12:41 -0500
|
|
|
ab86b0 |
Subject: [PATCH 03/54] pvscan: fix messages from coverity changes
|
|
|
429878 |
|
|
|
429878 |
---
|
|
|
429878 |
tools/pvscan.c | 4 ++--
|
|
|
429878 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
429878 |
|
|
|
429878 |
diff --git a/tools/pvscan.c b/tools/pvscan.c
|
|
|
429878 |
index 8e2611361..f60c4a2ca 100644
|
|
|
429878 |
--- a/tools/pvscan.c
|
|
|
429878 |
+++ b/tools/pvscan.c
|
|
|
429878 |
@@ -1354,7 +1354,7 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
|
|
|
429878 |
devsize = dev->size;
|
|
|
429878 |
if (!devsize &&
|
|
|
429878 |
!dev_get_size(dev, &devsize)) {
|
|
|
429878 |
- log_print("pvscan[%d] PV %s can get device size.", getpid(), dev_name(dev));
|
|
|
429878 |
+ log_print_pvscan(cmd, "PV %s missing device size.", dev_name(dev));
|
|
|
429878 |
release_vg(vg);
|
|
|
429878 |
continue;
|
|
|
429878 |
}
|
|
|
429878 |
@@ -1786,7 +1786,7 @@ static int _pvscan_cache_args(struct cmd_context *cmd, int argc, char **argv,
|
|
|
429878 |
int has_pvid;
|
|
|
429878 |
|
|
|
429878 |
if (!label_read_pvid(devl->dev, &has_pvid)) {
|
|
|
429878 |
- log_print("pvscan[%d] %s cannot read.", getpid(), dev_name(devl->dev));
|
|
|
429878 |
+ log_print_pvscan(cmd, "%s cannot read label.", dev_name(devl->dev));
|
|
|
429878 |
dm_list_del(&devl->list);
|
|
|
429878 |
continue;
|
|
|
429878 |
}
|
|
|
429878 |
--
|
|
|
ab86b0 |
2.34.3
|
|
|
429878 |
|