提交 6bbc5c30 编写于 作者: P Peter Krempa

util: virqemu: Simplify debugging if building QOM object with missing args

Print the values so it's simpler to debug.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 2bd9db96
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册