Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
3f020d70
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看板
提交
3f020d70
编写于
15年前
作者:
M
malc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "On some systems printf is a macro"
This reverts commit
bc5b6004
.
上级
d55380bb
无相关合并请求
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
52 deletion
+48
-52
qemu-img.c
qemu-img.c
+30
-30
readline.c
readline.c
+0
-4
vl.c
vl.c
+18
-18
未找到文件。
qemu-img.c
浏览文件 @
3f020d70
...
...
@@ -58,41 +58,41 @@ static void format_print(void *opaque, const char *name)
/* Please keep in synch with qemu-img.texi */
static
void
help
(
void
)
{
(
printf
)
(
"qemu-img version "
QEMU_VERSION
", Copyright (c) 2004-2008 Fabrice Bellard
\n
"
"usage: qemu-img command [command options]
\n
"
"QEMU disk image utility
\n
"
"
\n
"
"Command syntax:
\n
"
printf
(
"qemu-img version "
QEMU_VERSION
", Copyright (c) 2004-2008 Fabrice Bellard
\n
"
"usage: qemu-img command [command options]
\n
"
"QEMU disk image utility
\n
"
"
\n
"
"Command syntax:
\n
"
#define DEF(option, callback, arg_string) \
" " arg_string "\n"
#include "qemu-img-cmds.h"
#undef DEF
#undef GEN_DOCS
"
\n
"
"Command parameters:
\n
"
" 'filename' is a disk image filename
\n
"
" 'fmt' is the disk image format. It is guessed automatically in most cases
\n
"
" 'size' is the disk image size in bytes. Optional suffixes
\n
"
" 'k' or 'K' (kilobyte, 1024), 'M' (megabyte, 1024k), 'G' (gigabyte, 1024M)
\n
"
" and T (terabyte, 1024G) are supported. 'b' is ignored.
\n
"
" 'output_filename' is the destination disk image filename
\n
"
" 'output_fmt' is the destination format
\n
"
" 'options' is a comma separated list of format specific options in a
\n
"
" name=value format. Use -o ? for an overview of the options supported by the
\n
"
" used format
\n
"
" '-c' indicates that target image must be compressed (qcow format only)
\n
"
" '-u' enables unsafe rebasing. It is assumed that old and new backing file
\n
"
" match exactly. The image doesn't need a working backing file before
\n
"
" rebasing in this case (useful for renaming the backing file)
\n
"
" '-h' with or without a command shows this help and lists the supported formats
\n
"
"
\n
"
"Parameters to snapshot subcommand:
\n
"
" 'snapshot' is the name of the snapshot to create, apply or delete
\n
"
" '-a' applies a snapshot (revert disk to saved state)
\n
"
" '-c' creates a snapshot
\n
"
" '-d' deletes a snapshot
\n
"
" '-l' lists all snapshots in the given image
\n
"
);
"
\n
"
"Command parameters:
\n
"
" 'filename' is a disk image filename
\n
"
" 'fmt' is the disk image format. It is guessed automatically in most cases
\n
"
" 'size' is the disk image size in bytes. Optional suffixes
\n
"
" 'k' or 'K' (kilobyte, 1024), 'M' (megabyte, 1024k), 'G' (gigabyte, 1024M)
\n
"
" and T (terabyte, 1024G) are supported. 'b' is ignored.
\n
"
" 'output_filename' is the destination disk image filename
\n
"
" 'output_fmt' is the destination format
\n
"
" 'options' is a comma separated list of format specific options in a
\n
"
" name=value format. Use -o ? for an overview of the options supported by the
\n
"
" used format
\n
"
" '-c' indicates that target image must be compressed (qcow format only)
\n
"
" '-u' enables unsafe rebasing. It is assumed that old and new backing file
\n
"
" match exactly. The image doesn't need a working backing file before
\n
"
" rebasing in this case (useful for renaming the backing file)
\n
"
" '-h' with or without a command shows this help and lists the supported formats
\n
"
"
\n
"
"Parameters to snapshot subcommand:
\n
"
" 'snapshot' is the name of the snapshot to create, apply or delete
\n
"
" '-a' applies a snapshot (revert disk to saved state)
\n
"
" '-c' creates a snapshot
\n
"
" '-d' deletes a snapshot
\n
"
" '-l' lists all snapshots in the given image
\n
"
);
printf
(
"
\n
Supported formats:"
);
bdrv_iterate_format
(
format_print
,
NULL
);
printf
(
"
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
readline.c
浏览文件 @
3f020d70
...
...
@@ -28,10 +28,6 @@
#define IS_ESC 1
#define IS_CSI 2
#ifdef printf
#undef printf
#endif
#define printf do_not_use_printf
void
readline_show_prompt
(
ReadLineState
*
rs
)
...
...
This diff is collapsed.
Click to expand it.
vl.c
浏览文件 @
3f020d70
...
...
@@ -4022,10 +4022,10 @@ static void version(void)
static
void
help
(
int
exitcode
)
{
version
();
(
printf
)
(
"usage: %s [options] [disk_image]
\n
"
"
\n
"
"'disk_image' is a raw hard image image for IDE hard disk 0
\n
"
"
\n
"
printf
(
"usage: %s [options] [disk_image]
\n
"
"
\n
"
"'disk_image' is a raw hard image image for IDE hard disk 0
\n
"
"
\n
"
#define DEF(option, opt_arg, opt_enum, opt_help) \
opt_help
#define DEFHEADING(text) stringify(text) "\n"
...
...
@@ -4033,22 +4033,22 @@ static void help(int exitcode)
#undef DEF
#undef DEFHEADING
#undef GEN_DOCS
"
\n
"
"During emulation, the following keys are useful:
\n
"
"ctrl-alt-f toggle full screen
\n
"
"ctrl-alt-n switch to virtual console 'n'
\n
"
"ctrl-alt toggle mouse and keyboard grab
\n
"
"
\n
"
"When using -nographic, press 'ctrl-a h' to get some help.
\n
"
,
"qemu"
,
DEFAULT_RAM_SIZE
,
"
\n
"
"During emulation, the following keys are useful:
\n
"
"ctrl-alt-f toggle full screen
\n
"
"ctrl-alt-n switch to virtual console 'n'
\n
"
"ctrl-alt toggle mouse and keyboard grab
\n
"
"
\n
"
"When using -nographic, press 'ctrl-a h' to get some help.
\n
"
,
"qemu"
,
DEFAULT_RAM_SIZE
,
#ifndef _WIN32
DEFAULT_NETWORK_SCRIPT
,
DEFAULT_NETWORK_DOWN_SCRIPT
,
DEFAULT_NETWORK_SCRIPT
,
DEFAULT_NETWORK_DOWN_SCRIPT
,
#endif
DEFAULT_GDBSTUB_PORT
,
"/tmp/qemu.log"
);
DEFAULT_GDBSTUB_PORT
,
"/tmp/qemu.log"
);
exit
(
exitcode
);
}
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部