Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d4c1e5ae
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d4c1e5ae
编写于
12月 21, 2009
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix compilation with configure --disable-nls
上级
434daaff
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
src/cpu/cpu.c
src/cpu/cpu.c
+2
-2
src/cpu/cpu_map.c
src/cpu/cpu_map.c
+1
-1
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.c
+10
-10
未找到文件。
src/cpu/cpu.c
浏览文件 @
d4c1e5ae
...
...
@@ -48,7 +48,7 @@ cpuGetSubDriver(virConnectPtr conn,
if
(
arch
==
NULL
)
{
virCPUReportError
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"undefined hardware architecture"
));
"%s"
,
_
(
"undefined hardware architecture"
));
return
NULL
;
}
...
...
@@ -130,7 +130,7 @@ cpuDecode(virConnectPtr conn,
if
(
cpu
==
NULL
)
{
virCPUReportError
(
conn
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"invalid CPU definition"
));
"%s"
,
_
(
"invalid CPU definition"
));
return
-
1
;
}
...
...
src/cpu/cpu_map.c
浏览文件 @
d4c1e5ae
...
...
@@ -79,7 +79,7 @@ int cpuMapLoad(const char *arch,
if
(
arch
==
NULL
)
{
virCPUReportError
(
NULL
,
VIR_ERR_INTERNAL_ERROR
,
_
(
"undefined hardware architecture"
));
"%s"
,
_
(
"undefined hardware architecture"
));
return
-
1
;
}
...
...
src/qemu/qemu_monitor_json.c
浏览文件 @
d4c1e5ae
...
...
@@ -645,7 +645,7 @@ int qemuMonitorJSONGetBlockStatsInfo(qemuMonitorPtr mon,
devices
=
virJSONValueObjectGet
(
reply
,
"return"
);
if
(
!
devices
||
devices
->
type
!=
VIR_JSON_TYPE_ARRAY
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"blockstats reply was missing device list"
));
goto
cleanup
;
}
...
...
@@ -655,13 +655,13 @@ int qemuMonitorJSONGetBlockStatsInfo(qemuMonitorPtr mon,
virJSONValuePtr
stats
;
const
char
*
thisdev
;
if
(
!
dev
||
dev
->
type
!=
VIR_JSON_TYPE_OBJECT
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"blockstats device entry was not in expected format"
));
goto
cleanup
;
}
if
((
thisdev
=
virJSONValueObjectGetString
(
dev
,
"device"
))
==
NULL
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"blockstats device entry was not in expected format"
));
goto
cleanup
;
}
...
...
@@ -672,7 +672,7 @@ int qemuMonitorJSONGetBlockStatsInfo(qemuMonitorPtr mon,
found
=
1
;
if
((
stats
=
virJSONValueObjectGet
(
dev
,
"stats"
))
==
NULL
||
stats
->
type
!=
VIR_JSON_TYPE_OBJECT
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"blockstats stats entry was not in expected format"
));
goto
cleanup
;
}
...
...
@@ -919,13 +919,13 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
char
*
statusstr
;
if
(
!
(
ret
=
virJSONValueObjectGet
(
reply
,
"return"
)))
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"info migration reply was missing return data"
));
return
-
1
;
}
if
(
!
(
statusstr
=
virJSONValueObjectGetString
(
ret
,
"status"
)))
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"info migration reply was missing return status"
));
return
-
1
;
}
...
...
@@ -1214,25 +1214,25 @@ qemuMonitorJSONGetGuestAddress(virJSONValuePtr reply,
addr
=
virJSONValueObjectGet
(
reply
,
"return"
);
if
(
!
addr
||
addr
->
type
!=
VIR_JSON_TYPE_OBJECT
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"pci_add reply was missing device address"
));
return
-
1
;
}
if
(
virJSONValueObjectGetNumberUint
(
addr
,
"domain"
,
guestDomain
)
<
0
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"pci_add reply was missing device domain number"
));
return
-
1
;
}
if
(
virJSONValueObjectGetNumberUint
(
addr
,
"bus"
,
guestBus
)
<
0
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"pci_add reply was missing device bus number"
));
return
-
1
;
}
if
(
virJSONValueObjectGetNumberUint
(
addr
,
"slot"
,
guestSlot
)
<
0
)
{
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
qemudReportError
(
NULL
,
NULL
,
NULL
,
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"pci_add reply was missing device slot number"
));
return
-
1
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录