diff options
author | Matthew Fernandez <matthew.fernandez@gmail.com> | 2011-06-07 16:32:40 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-06-15 16:51:24 +0000 |
commit | c235d7387c850857ec6b0ba8ee28c7e1548f68c0 (patch) | |
tree | 7ee3ca4ebda75f746d9c7ba6845b8bdab72e3f42 /cpus.c | |
parent | 71f34ad05359d7fa97996562d904979281ddc7f5 (diff) |
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 'cpus.c')
-rw-r--r-- | cpus.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |