]> sourceware.org Git - lvm2.git/commitdiff
debug: drop vgid from debug
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 2 Oct 2020 20:22:25 +0000 (22:22 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 2 Oct 2020 20:27:00 +0000 (22:27 +0200)
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.

lib/cache/lvmcache.c

index a2fa0e3fb9328410d3742353e73d549a8cf5e982..ef0f4c391861537e126a946347904bae8c481ae2 100644 (file)
@@ -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->has_duplicate_local_vgname) {
                                /* 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 vginfo;
@@ -336,7 +336,7 @@ static struct lvmcache_vginfo *_vginfo_lookup(const char *vgname, const char *vg
        if (vgname && _found_duplicate_vgnames) {
                if ((vginfo = _search_vginfos_list(vgname, vgid))) {
                        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 vginfo;
This page took 1.792793 seconds and 5 git commands to generate.