[libvirt] [PATCH 2/2] qemu: Reject unsupported tuning in session mode
Eric Blake
eblake at redhat.com
Tue Mar 4 16:52:09 UTC 2014
On 03/04/2014 07:13 AM, Martin Kletzander wrote:
>>> 1) Would helper function (macro) be preferred so the code looks
>>> cleaner?
>>
>> What macro do you have in mind?
>>
>
> I haven't thought that through, just from top of my head:
>
> #define SESSION_UNSUPP(what) if (!cfg->privileged) { \
> virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s %s", \
> what, _("is not available in sesison mode")); \
That's not very nice to translators. At this point, what you started
with is better than what a macro would give.
--
Eric Blake eblake 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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140304/a289e0ee/attachment-0001.sig>
More information about the libvir-list
mailing list