Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
a485cae8
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a485cae8
编写于
12月 18, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace __FUNCTION__ with __func__ for better portability (John Levon)
上级
264ed020
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
7 deletion
+13
-7
ChangeLog
ChangeLog
+6
-0
examples/domain-events/events-c/event-test.c
examples/domain-events/events-c/event-test.c
+5
-5
python/types.c
python/types.c
+2
-2
未找到文件。
ChangeLog
浏览文件 @
a485cae8
Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
* examples/domain-events/events-c/event-test.c,
python/types.c: Replace __FUNCTION__ with __func__ for
better portability (John Levon)
Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
Thu Dec 18 12:18:58 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
Fix gcc-ism in python build (John Levon)
Fix gcc-ism in python build (John Levon)
...
...
examples/domain-events/events-c/event-test.c
浏览文件 @
a485cae8
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
#include <libvirt/libvirt.h>
#include <libvirt/libvirt.h>
#define DEBUG0(fmt) printf("%s:%d :: " fmt "\n", \
#define DEBUG0(fmt) printf("%s:%d :: " fmt "\n", \
__
FUNCTION
__, __LINE__)
__
func
__, __LINE__)
#define DEBUG(fmt, ...) printf("%s:%d: " fmt "\n", \
#define DEBUG(fmt, ...) printf("%s:%d: " fmt "\n", \
__
FUNCTION
__, __LINE__, __VA_ARGS__)
__
func
__, __LINE__, __VA_ARGS__)
#define STREQ(a,b) (strcmp((a),(b)) == 0)
#define STREQ(a,b) (strcmp((a),(b)) == 0)
#ifndef ATTRIBUTE_UNUSED
#ifndef ATTRIBUTE_UNUSED
...
@@ -158,7 +158,7 @@ int myDomainEventCallback1 (virConnectPtr conn ATTRIBUTE_UNUSED,
...
@@ -158,7 +158,7 @@ int myDomainEventCallback1 (virConnectPtr conn ATTRIBUTE_UNUSED,
int
detail
,
int
detail
,
void
*
opaque
ATTRIBUTE_UNUSED
)
void
*
opaque
ATTRIBUTE_UNUSED
)
{
{
printf
(
"%s EVENT: Domain %s(%d) %s %s
\n
"
,
__
FUNCTION
__
,
virDomainGetName
(
dom
),
printf
(
"%s EVENT: Domain %s(%d) %s %s
\n
"
,
__
func
__
,
virDomainGetName
(
dom
),
virDomainGetID
(
dom
),
eventToString
(
event
),
virDomainGetID
(
dom
),
eventToString
(
event
),
eventDetailToString
(
event
,
detail
));
eventDetailToString
(
event
,
detail
));
return
0
;
return
0
;
...
@@ -170,7 +170,7 @@ int myDomainEventCallback2 (virConnectPtr conn ATTRIBUTE_UNUSED,
...
@@ -170,7 +170,7 @@ int myDomainEventCallback2 (virConnectPtr conn ATTRIBUTE_UNUSED,
int
detail
,
int
detail
,
void
*
opaque
ATTRIBUTE_UNUSED
)
void
*
opaque
ATTRIBUTE_UNUSED
)
{
{
printf
(
"%s EVENT: Domain %s(%d) %s %s
\n
"
,
__
FUNCTION
__
,
virDomainGetName
(
dom
),
printf
(
"%s EVENT: Domain %s(%d) %s %s
\n
"
,
__
func
__
,
virDomainGetName
(
dom
),
virDomainGetID
(
dom
),
eventToString
(
event
),
virDomainGetID
(
dom
),
eventToString
(
event
),
eventDetailToString
(
event
,
detail
));
eventDetailToString
(
event
,
detail
));
return
0
;
return
0
;
...
@@ -179,7 +179,7 @@ int myDomainEventCallback2 (virConnectPtr conn ATTRIBUTE_UNUSED,
...
@@ -179,7 +179,7 @@ int myDomainEventCallback2 (virConnectPtr conn ATTRIBUTE_UNUSED,
static
void
myFreeFunc
(
void
*
opaque
)
static
void
myFreeFunc
(
void
*
opaque
)
{
{
char
*
str
=
opaque
;
char
*
str
=
opaque
;
printf
(
"%s: Freeing [%s]
\n
"
,
__
FUNCTION
__
,
str
);
printf
(
"%s: Freeing [%s]
\n
"
,
__
func
__
,
str
);
free
(
str
);
free
(
str
);
}
}
...
...
python/types.c
浏览文件 @
a485cae8
...
@@ -185,7 +185,7 @@ libvirt_virEventHandleCallbackWrap(virEventHandleCallback node)
...
@@ -185,7 +185,7 @@ libvirt_virEventHandleCallbackWrap(virEventHandleCallback node)
if
(
node
==
NULL
)
{
if
(
node
==
NULL
)
{
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
printf
(
"%s: WARNING - Wrapping None
\n
"
,
__
FUNCTION
__
);
printf
(
"%s: WARNING - Wrapping None
\n
"
,
__
func
__
);
return
(
Py_None
);
return
(
Py_None
);
}
}
ret
=
ret
=
...
@@ -200,7 +200,7 @@ libvirt_virEventTimeoutCallbackWrap(virEventTimeoutCallback node)
...
@@ -200,7 +200,7 @@ libvirt_virEventTimeoutCallbackWrap(virEventTimeoutCallback node)
PyObject
*
ret
;
PyObject
*
ret
;
if
(
node
==
NULL
)
{
if
(
node
==
NULL
)
{
printf
(
"%s: WARNING - Wrapping None
\n
"
,
__
FUNCTION
__
);
printf
(
"%s: WARNING - Wrapping None
\n
"
,
__
func
__
);
Py_INCREF
(
Py_None
);
Py_INCREF
(
Py_None
);
return
(
Py_None
);
return
(
Py_None
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录