[Libvirt-cim] [PATCH] libxkutil: More meaningful log message

Chip Vincent cvincent at linux.vnet.ibm.com
Wed Jul 20 14:20:37 UTC 2011


+1 and pushed. Thanks for fixing that. I saw lots more 'Errors' that are 
not actual errors after we added the read-only support.

On 07/19/2011 03:46 PM, Eduardo Lima (Etrunko) wrote:
> # HG changeset patch
> # User Eduardo Lima (Etrunko)<eblima at br.ibm.com>
> # Date 1311104779 10800
> # Node ID 43f9834c98a030ada1d69693d119cdc6367cf284
> # Parent  3c90a88a5199a4ed931a4a76097cff8f55deae41
> libxkutil: More meaningful log message
>
> Signed-off-by: Eduardo Lima (Etrunko)<eblima at br.ibm.com>
>
> diff --git a/libxkutil/misc_util.c b/libxkutil/misc_util.c
> --- a/libxkutil/misc_util.c
> +++ b/libxkutil/misc_util.c
> @@ -73,14 +73,14 @@
>
>           ret = config_read_file(&conf, LIBVIRTCIM_CONF);
>           if (ret == CONFIG_FALSE) {
> -                CU_DEBUG("Error reading config file at liine %d: '%s'\n",
> +                CU_DEBUG("Error reading config file at line %d: '%s'\n",
>                            conf.error_line, conf.error_text);
>                   goto out;
>           }
>
>           ret = config_lookup_bool(&conf, readonly_str,&readonly);
>           if (ret == CONFIG_FALSE) {
> -                CU_DEBUG("Error: '%s' not found in config file\n",
> +                CU_DEBUG("'%s' not found in config file, assuming false\n",
>                            readonly_str);
>                   goto out;
>           }
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim

-- 
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list