mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
debug: drop vgid from debug
From the code can be seen the VGID will be always NULL here as vgid != NULL is already handled before. Thus drop from being displayed.
This commit is contained in:
parent
117fc64e6e
commit
73a3a0d347
4
lib/cache/lvmcache.c
vendored
4
lib/cache/lvmcache.c
vendored
@ -326,7 +326,7 @@ static struct lvmcache_vginfo *_vginfo_lookup(const char *vgname, const char *vg
|
|||||||
if ((vginfo = dm_hash_lookup(_vgname_hash, vgname))) {
|
if ((vginfo = dm_hash_lookup(_vgname_hash, vgname))) {
|
||||||
if (vginfo->has_duplicate_local_vgname) {
|
if (vginfo->has_duplicate_local_vgname) {
|
||||||
/* should never happen, found_duplicate_vgnames should be set */
|
/* should never happen, found_duplicate_vgnames should be set */
|
||||||
log_error(INTERNAL_ERROR "vginfo_lookup %s %s has_duplicate_local_vgname", vgname, vgid);
|
log_error(INTERNAL_ERROR "vginfo_lookup %s has_duplicate_local_vgname.", vgname);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return vginfo;
|
return vginfo;
|
||||||
@ -336,7 +336,7 @@ static struct lvmcache_vginfo *_vginfo_lookup(const char *vgname, const char *vg
|
|||||||
if (vgname && _found_duplicate_vgnames) {
|
if (vgname && _found_duplicate_vgnames) {
|
||||||
if ((vginfo = _search_vginfos_list(vgname, vgid))) {
|
if ((vginfo = _search_vginfos_list(vgname, vgid))) {
|
||||||
if (vginfo->has_duplicate_local_vgname) {
|
if (vginfo->has_duplicate_local_vgname) {
|
||||||
log_debug("vginfo_lookup %s %s has_duplicate_local_vgname return none", vgname, vgid);
|
log_debug("vginfo_lookup %s has_duplicate_local_vgname return none.", vgname);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return vginfo;
|
return vginfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user