Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
c96f6ae8
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看板
提交
c96f6ae8
编写于
5月 21, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tools: Remove the whitespace before ";"
上级
f0e752a4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
10 deletion
+10
-10
tools/virsh-domain.c
tools/virsh-domain.c
+3
-3
tools/virsh-nodedev.c
tools/virsh-nodedev.c
+3
-3
tools/virsh-nwfilter.c
tools/virsh-nwfilter.c
+1
-1
tools/virsh-secret.c
tools/virsh-secret.c
+1
-1
tools/virsh.c
tools/virsh.c
+2
-2
未找到文件。
tools/virsh-domain.c
浏览文件 @
c96f6ae8
...
...
@@ -5295,7 +5295,7 @@ cmdVcpuinfo(vshControl *ctl, const vshCmd *cmd)
if
((
ncpus
=
virDomainGetVcpus
(
dom
,
cpuinfo
,
info
.
nrVirtCpu
,
cpumaps
,
cpumaplen
))
>=
0
)
{
for
(
n
=
0
;
n
<
ncpus
;
n
++
)
{
for
(
n
=
0
;
n
<
ncpus
;
n
++
)
{
vshPrint
(
ctl
,
"%-15s %d
\n
"
,
_
(
"VCPU:"
),
n
);
vshPrint
(
ctl
,
"%-15s %d
\n
"
,
_
(
"CPU:"
),
cpuinfo
[
n
].
cpu
);
vshPrint
(
ctl
,
"%-15s %s
\n
"
,
_
(
"State:"
),
...
...
@@ -6819,7 +6819,7 @@ static int getSignalNumber(vshControl *ctl, const char *signame)
char
*
lower
=
vshStrdup
(
ctl
,
signame
);
char
*
tmp
=
lower
;
for
(
i
=
0
;
signame
[
i
]
;
i
++
)
for
(
i
=
0
;
signame
[
i
]
;
i
++
)
lower
[
i
]
=
c_tolower
(
signame
[
i
]);
if
(
virStrToLong_i
(
lower
,
NULL
,
10
,
&
signum
)
>=
0
)
...
...
@@ -7808,7 +7808,7 @@ cmdLxcEnterNamespace(vshControl *ctl, const vshCmd *cmd)
}
_exit
(
0
);
}
else
{
for
(
i
=
0
;
i
<
nfdlist
;
i
++
)
for
(
i
=
0
;
i
<
nfdlist
;
i
++
)
VIR_FORCE_CLOSE
(
fdlist
[
i
]);
VIR_FREE
(
fdlist
);
if
(
virProcessWait
(
pid
,
NULL
)
<
0
)
...
...
tools/virsh-nodedev.c
浏览文件 @
c96f6ae8
...
...
@@ -277,7 +277,7 @@ fallback:
list
->
ndevices
=
0
;
/* get the node devices */
for
(
i
=
0
;
i
<
ndevices
;
i
++
)
{
for
(
i
=
0
;
i
<
ndevices
;
i
++
)
{
if
(
!
(
device
=
virNodeDeviceLookupByName
(
ctl
->
conn
,
names
[
i
])))
continue
;
list
->
devices
[
list
->
ndevices
++
]
=
device
;
...
...
@@ -481,14 +481,14 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
}
}
for
(
i
=
0
;
i
<
list
->
ndevices
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
ndevices
;
i
++
)
{
if
(
parents
[
i
]
==
NULL
&&
vshTreePrint
(
ctl
,
vshNodeListLookup
,
&
arrays
,
list
->
ndevices
,
i
)
<
0
)
ret
=
false
;
}
for
(
i
=
0
;
i
<
list
->
ndevices
;
i
++
)
for
(
i
=
0
;
i
<
list
->
ndevices
;
i
++
)
VIR_FREE
(
parents
[
i
]);
VIR_FREE
(
parents
);
for
(
i
=
0
;
i
<
list
->
ndevices
;
i
++
)
...
...
tools/virsh-nwfilter.c
浏览文件 @
c96f6ae8
...
...
@@ -309,7 +309,7 @@ fallback:
list
->
nfilters
=
0
;
/* get the network filters */
for
(
i
=
0
;
i
<
nfilters
;
i
++
)
{
for
(
i
=
0
;
i
<
nfilters
;
i
++
)
{
if
(
!
(
filter
=
virNWFilterLookupByName
(
ctl
->
conn
,
names
[
i
])))
continue
;
list
->
filters
[
list
->
nfilters
++
]
=
filter
;
...
...
tools/virsh-secret.c
浏览文件 @
c96f6ae8
...
...
@@ -439,7 +439,7 @@ fallback:
list
->
nsecrets
=
0
;
/* get the secrets */
for
(
i
=
0
;
i
<
nsecrets
;
i
++
)
{
for
(
i
=
0
;
i
<
nsecrets
;
i
++
)
{
if
(
!
(
secret
=
virSecretLookupByUUIDString
(
ctl
->
conn
,
uuids
[
i
])))
continue
;
list
->
secrets
[
list
->
nsecrets
++
]
=
secret
;
...
...
tools/virsh.c
浏览文件 @
c96f6ae8
...
...
@@ -610,7 +610,7 @@ vshTreePrintInternal(vshControl *ctl,
}
/* Determine the index of the last child device */
for
(
i
=
0
;
i
<
num_devices
;
i
++
)
{
for
(
i
=
0
;
i
<
num_devices
;
i
++
)
{
const
char
*
parent
=
(
lookup
)(
i
,
true
,
opaque
);
if
(
parent
&&
STREQ
(
parent
,
dev
))
...
...
@@ -625,7 +625,7 @@ vshTreePrintInternal(vshControl *ctl,
virBufferAddLit
(
indent
,
" "
);
if
(
virBufferError
(
indent
))
goto
cleanup
;
for
(
i
=
0
;
i
<
num_devices
;
i
++
)
{
for
(
i
=
0
;
i
<
num_devices
;
i
++
)
{
const
char
*
parent
=
(
lookup
)(
i
,
true
,
opaque
);
if
(
parent
&&
STREQ
(
parent
,
dev
)
&&
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录