summaryrefslogtreecommitdiffstats
path: root/qemu-options.hx
diff options
context:
space:
mode:
authorMatthew Fernandez2011-06-07 18:32:40 +0200
committerBlue Swirl2011-06-15 18:51:24 +0200
commitc235d7387c850857ec6b0ba8ee28c7e1548f68c0 (patch)
tree7ee3ca4ebda75f746d9c7ba6845b8bdab72e3f42 /qemu-options.hx
parentMerge remote-tracking branch 'alon/pull-libcacard-1' into staging (diff)
downloadqemu-c235d7387c850857ec6b0ba8ee28c7e1548f68c0.tar.gz
qemu-c235d7387c850857ec6b0ba8ee28c7e1548f68c0.tar.xz
qemu-c235d7387c850857ec6b0ba8ee28c7e1548f68c0.zip
Command line support for altering the log file location
Add command line support for logging to a location other than /tmp/qemu.log. With logging enabled (command line option -d), the log is written to the hard-coded path /tmp/qemu.log. This patch adds support for writing the log to a different location by passing the -D option. Signed-off-by: Matthew Fernandez <matthew.fernandez@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-options.hx')
-rw-r--r--qemu-options.hx9
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu-options.hx b/qemu-options.hx
index f2ef9a1f08..37e54ee27a 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2007,6 +2007,15 @@ STEXI
Output log in /tmp/qemu.log
ETEXI
+DEF("D", HAS_ARG, QEMU_OPTION_D, \
+ "-D logfile output log to logfile (instead of the default /tmp/qemu.log)\n",
+ QEMU_ARCH_ALL)
+STEXI
+@item -D
+@findex -D
+Output log in logfile instead of /tmp/qemu.log
+ETEXI
+
DEF("hdachs", HAS_ARG, QEMU_OPTION_hdachs, \
"-hdachs c,h,s[,t]\n" \
" force hard disk 0 physical geometry and the optional BIOS\n" \