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

Eric Blake eblake at redhat.com
Thu Dec 1 22:28:21 UTC 2011


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 at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111201/2ceb2ee2/attachment-0001.sig>


More information about the libvir-list mailing list