aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2010-02-07 02:04:28 +0300
committermalc <av1474@comtv.ru>2010-02-07 02:04:28 +0300
commitbc5b6004588ad17370e0416e40b4aa9cf977023b (patch)
treee02a59e0a34449fdd29c8b29e31ac55f25890d93 /vl.c
parentd0f2c4c60263e29a87681433e696844401514194 (diff)
On some systems printf is a macro
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/vl.c b/vl.c
index ea9a95c65d..c22e300f0d 100644
--- a/vl.c
+++ b/vl.c
@@ -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);
}