]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: virqemu: Simplify debugging if building QOM object with missing args
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Jul 2018 15:48:08 +0000 (17:48 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2018 13:46:06 +0000 (15:46 +0200)
Print the values so it's simpler to debug.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virqemu.c

index bc788538af5da51640416ff34feab2228eb32905..13ad7410b458ee6aba9b444355411c6ec3dc84f9 100644 (file)
@@ -235,8 +235,9 @@ virQEMUBuildObjectCommandlineFromJSONInternal(virBufferPtr buf,
                                               virJSONValuePtr props)
 {
     if (!type || !alias) {
-        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                       _("missing 'type' or 'alias' field of QOM 'object'"));
+        virReportError(VIR_ERR_INTERNAL_ERROR,
+                       _("missing 'type'(%s) or 'alias'(%s) field of QOM 'object'"),
+                       NULLSTR(type), NULLSTR(alias));
         return -1;
     }