From c235d7387c850857ec6b0ba8ee28c7e1548f68c0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 7 Jun 2011 16:32:40 +0000 Subject: 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 Signed-off-by: Blue Swirl --- cpus.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpus.c') diff --git a/cpus.c b/cpus.c index 1fc34b75c2..17e96b56e0 100644 --- a/cpus.c +++ b/cpus.c @@ -1142,6 +1142,11 @@ void set_cpu_log(const char *optarg) cpu_set_log(mask); } +void set_cpu_log_filename(const char *optarg) +{ + cpu_set_log_filename(optarg); +} + /* Return the virtual CPU time, based on the instruction counter. */ int64_t cpu_get_icount(void) { -- cgit v1.2.1