mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
pvscan: fix messages from coverity changes
This commit is contained in:
parent
2091305b79
commit
a5a2d5fa1e
@ -1354,7 +1354,7 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
|
|||||||
devsize = dev->size;
|
devsize = dev->size;
|
||||||
if (!devsize &&
|
if (!devsize &&
|
||||||
!dev_get_size(dev, &devsize)) {
|
!dev_get_size(dev, &devsize)) {
|
||||||
log_print("pvscan[%d] PV %s can get device size.", getpid(), dev_name(dev));
|
log_print_pvscan(cmd, "PV %s missing device size.", dev_name(dev));
|
||||||
release_vg(vg);
|
release_vg(vg);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1786,7 +1786,7 @@ static int _pvscan_cache_args(struct cmd_context *cmd, int argc, char **argv,
|
|||||||
int has_pvid;
|
int has_pvid;
|
||||||
|
|
||||||
if (!label_read_pvid(devl->dev, &has_pvid)) {
|
if (!label_read_pvid(devl->dev, &has_pvid)) {
|
||||||
log_print("pvscan[%d] %s cannot read.", getpid(), dev_name(devl->dev));
|
log_print_pvscan(cmd, "%s cannot read label.", dev_name(devl->dev));
|
||||||
dm_list_del(&devl->list);
|
dm_list_del(&devl->list);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user