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(a)redhat.com>
---
src/util/virobject.c | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina(a)redhat.com>