Re: [libvirt] [PATCH 1/4] Fix UUID handling in secrets/storage encryption APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> @@ -635,49 +620,25 @@ secretLookupByUUIDString(virConnectPtr conn,
> const char *uuid)
>  
>      pptr = secretFind(driver, uuid);
>      if (pptr == NULL) {
> +        char uuidstr[VIR_UUID_STRING_BUFLEN];
> +        virUUIDFormat(uuid, uuidstr);
>          virSecretReportError(conn, VIR_ERR_NO_SECRET,
> -                             _("no secret with matching id '%s'"), uuid);
> +                             _("no secret with matching uuid '%s'"), uuidstr);
>          goto cleanup;
>      }
>  
> -    ret = virGetSecret(conn, (*pptr)->def->id);
> +    ret = virGetSecret(conn, (*pptr)->def->uuid);
>  
>  cleanup:
> +    if (1) {
> +        char uuidstr[VIR_UUID_STRING_BUFLEN];
> +        virUUIDFormat(uuid, uuidstr);
> +        VIR_ERROR("Lookup %s got %p", uuidstr, ret);
> +    }
This looks like a debug print that should be removed in the final version.
    Mirek

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]