Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
fc5469d8
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fc5469d8
编写于
2月 19, 2010
作者:
M
Markus Armbruster
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
error: Polish human-readable error descriptions
Also put error definitions in alphabetical order
上级
cde0fc75
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
21 deletion
+21
-21
qerror.c
qerror.c
+14
-14
qerror.h
qerror.h
+7
-7
未找到文件。
qerror.c
浏览文件 @
fc5469d8
...
...
@@ -46,43 +46,39 @@ static const QErrorStringTable qerror_table[] = {
},
{
.
error_fmt
=
QERR_DEVICE_ENCRYPTED
,
.
desc
=
"
The %(device)
is encrypted"
,
.
desc
=
"
Device '%(device)'
is encrypted"
,
},
{
.
error_fmt
=
QERR_DEVICE_LOCKED
,
.
desc
=
"Device
%(device)
is locked"
,
.
desc
=
"Device
'%(device)'
is locked"
,
},
{
.
error_fmt
=
QERR_DEVICE_NOT_ACTIVE
,
.
desc
=
"
The %(device) device
has not been activated by the guest"
,
.
desc
=
"
Device '%(device)'
has not been activated by the guest"
,
},
{
.
error_fmt
=
QERR_DEVICE_NOT_FOUND
,
.
desc
=
"
The %(device) device has not been
found"
,
.
desc
=
"
Device '%(device)' not
found"
,
},
{
.
error_fmt
=
QERR_DEVICE_NOT_REMOVABLE
,
.
desc
=
"Device
%(device)
is not removable"
,
.
desc
=
"Device
'%(device)'
is not removable"
,
},
{
.
error_fmt
=
QERR_FD_NOT_FOUND
,
.
desc
=
"F
ailed to find file descriptor named %(name)
"
,
.
desc
=
"F
ile descriptor named '%(name)' not found
"
,
},
{
.
error_fmt
=
QERR_FD_NOT_SUPPLIED
,
.
desc
=
"No file descriptor supplied via SCM_RIGHTS"
,
},
{
.
error_fmt
=
QERR_OPEN_FILE_FAILED
,
.
desc
=
"Could not open '%(filename)'"
,
},
{
.
error_fmt
=
QERR_INVALID_BLOCK_FORMAT
,
.
desc
=
"Invalid block format
%(name)
"
,
.
desc
=
"Invalid block format
'%(name)'
"
,
},
{
.
error_fmt
=
QERR_INVALID_PARAMETER
,
.
desc
=
"Invalid parameter
%(name)
"
,
.
desc
=
"Invalid parameter
'%(name)'
"
,
},
{
.
error_fmt
=
QERR_INVALID_PARAMETER_TYPE
,
...
...
@@ -90,7 +86,7 @@ static const QErrorStringTable qerror_table[] = {
},
{
.
error_fmt
=
QERR_INVALID_PASSWORD
,
.
desc
=
"
The entered password is invalid
"
,
.
desc
=
"
Password incorrect
"
,
},
{
.
error_fmt
=
QERR_JSON_PARSING
,
...
...
@@ -102,7 +98,11 @@ static const QErrorStringTable qerror_table[] = {
},
{
.
error_fmt
=
QERR_MISSING_PARAMETER
,
.
desc
=
"Parameter %(name) is missing"
,
.
desc
=
"Parameter '%(name)' is missing"
,
},
{
.
error_fmt
=
QERR_OPEN_FILE_FAILED
,
.
desc
=
"Could not open '%(filename)'"
,
},
{
.
error_fmt
=
QERR_QMP_BAD_INPUT_OBJECT
,
...
...
qerror.h
浏览文件 @
fc5469d8
...
...
@@ -48,7 +48,7 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_DEVICE_ENCRYPTED \
"{ 'class': 'DeviceEncrypted', 'data': { 'device': %s } }"
#define QERR_DEVICE_LOCKED
\
#define QERR_DEVICE_LOCKED \
"{ 'class': 'DeviceLocked', 'data': { 'device': %s } }"
#define QERR_DEVICE_NOT_ACTIVE \
...
...
@@ -66,9 +66,6 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_FD_NOT_SUPPLIED \
"{ 'class': 'FdNotSupplied', 'data': {} }"
#define QERR_OPEN_FILE_FAILED \
"{ 'class': 'OpenFileFailed', 'data': { 'filename': %s } }"
#define QERR_INVALID_BLOCK_FORMAT \
"{ 'class': 'InvalidBlockFormat', 'data': { 'name': %s } }"
...
...
@@ -90,18 +87,21 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_MISSING_PARAMETER \
"{ 'class': 'MissingParameter', 'data': { 'name': %s } }"
#define QERR_OPEN_FILE_FAILED \
"{ 'class': 'OpenFileFailed', 'data': { 'filename': %s } }"
#define QERR_QMP_BAD_INPUT_OBJECT \
"{ 'class': 'QMPBadInputObject', 'data': { 'expected': %s } }"
#define QERR_SET_PASSWD_FAILED \
"{ 'class': 'SetPasswdFailed', 'data': {} }"
#define QERR_UNDEFINED_ERROR \
"{ 'class': 'UndefinedError', 'data': {} }"
#define QERR_TOO_MANY_FILES \
"{ 'class': 'TooManyFiles', 'data': {} }"
#define QERR_UNDEFINED_ERROR \
"{ 'class': 'UndefinedError', 'data': {} }"
#define QERR_VNC_SERVER_FAILED \
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录