Re: [RFC virt-viewer 03/12] vv-file: Add VirtViewerFile::versions

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

 



On Wed, Jun 03, 2015 at 03:44:58PM +0200, Pavel Grunt wrote:
> > +GHashTable*
> > +virt_viewer_file_get_versions(VirtViewerFile* self)
> > +{
> > +    GHashTable *versions;
> > +    gchar **versions_str;
> > +    gsize length;
> > +    unsigned int i;
> > +
> > +    versions = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, 
> > g_free);
> > +    versions_str = virt_viewer_file_get_string_list(self, MAIN_GROUP,
> > +                                                     "versions", &length);
> > +    for (i = 0; i < length; i++) {
> > +        GStrv tokens;
> > +
> > +        if (versions_str[i] == NULL) {
> > +            g_warn_if_reached();
> > +            break;
> > +        }
> > +        tokens = g_strsplit(versions_str[i], ":", 2);
> > +        if (g_strv_length(tokens) != 2) {
> > +            g_warn_if_reached();
> > +            continue;
> > +        }
> > +        g_debug("Minimum version '%s' for OS id '%s'", tokens[0], tokens[1]);
> 
> not g_debug("Minimum version '%s' for OS id '%s'", tokens[1], tokens[0]); ?

That's correct, I've fixed it, thanks!

Christophe

Attachment: pgpV3yb9f6E9C.pgp
Description: PGP signature

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux