[libvirt] [PATCH 6/7] util: Create common error path for invalid object

Pavel Hrdina phrdina at redhat.com
Fri Jul 28 17:08:40 UTC 2017


On Fri, Jul 28, 2017 at 12:39:00PM -0400, John Ferlan wrote:
> If virObjectIsClass fails "internally" to virobject.c, create a
> macro to generate the VIR_WARN describing what the problem is.
> Also improve the checks and message a bit to indicate which was
> the failure - whether the obj was NULL or just not the right class
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/util/virobject.c | 25 +++++++++++++------------
>  1 file changed, 13 insertions(+), 12 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170728/90069114/attachment-0001.sig>


More information about the libvir-list mailing list