Re: [PATCH virt-viewer v3 3/3] Write vm name to config file as comment

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

 




On Wed, Aug 6, 2014 at 9:19 PM, Jonathon Jongsma <jjongsma@xxxxxxxxxx> wrote:
+        if (error) {
+            g_warning("Unable to get comment from key file: %s", error->message);


I get this warning, while I think this is a normal condition. Shouldn't it be a g_debug instead?
 
+            g_clear_error(&error);
+        } else {
+            if (!comment || *comment == '\0')
+                g_key_file_set_comment(priv->config, priv->uuid, NULL, priv->guest_name, NULL);
+        }

So is this patch supposed to add a comment if it doesn't exist? How is it supposed to look like? It would have been nice to add a comment in commit log or in man page if it's supposed to be edited by user?



--
Marc-André Lureau
_______________________________________________
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