Re: [PATCH] conf: Improve incorrect root element error messages

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

 



On 11/28/2011 08:49 AM, Eric Blake wrote:
>> +++ b/src/security/virt-aa-helper.c
>> @@ -644,7 +644,7 @@ caps_mockup(vahControl * ctl, const char *xmlStr)
>>      }
>>  
>>      if (!xmlStrEqual(ctxt->node->name, BAD_CAST "domain")) {
>> -        vah_error(NULL, 0, _("incorrect root element"));
>> +        vah_error(NULL, 0, _("unexpected root element, expecting <domain>"));
> 
> this one does not.
> 
> ACK with virt-aa-helper fixed to be like the others.

It turns out the problem here is that vah_error is hard-coded to taking
one string argument, instead of being a var-args like most other error
reporting methods.  We should fix that, as a separate patch.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
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]