mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: virqemu: Simplify debugging if building QOM object with missing args
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>
This commit is contained in:
parent
2bd9db9659
commit
6bbc5c3035
@ -235,8 +235,9 @@ virQEMUBuildObjectCommandlineFromJSONInternal(virBufferPtr buf,
|
|||||||
virJSONValuePtr props)
|
virJSONValuePtr props)
|
||||||
{
|
{
|
||||||
if (!type || !alias) {
|
if (!type || !alias) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("missing 'type' or 'alias' field of QOM 'object'"));
|
_("missing 'type'(%s) or 'alias'(%s) field of QOM 'object'"),
|
||||||
|
NULLSTR(type), NULLSTR(alias));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user