diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-07-07 14:40:18 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-07-14 11:53:03 +0000 |
commit | 3437e545857aa15e583e314471e9c86fc3e9a89c (patch) | |
tree | f88d8c61ef12d4b4ff56420cc67922828195b718 /qemu-log.h | |
parent | 39a4ef1be680d7e60ee3a1cf6ff328dba0326365 (diff) |
qemu-log: fix x86 and user logging
5726c27fa913296aafab9f50b912cea5b3709271 broke
x86 specific options and user emulation specific stdio buffering.
Always enable all log items. They may not be useful for non-x86 targets,
but there's no harm either.
Fix user emulation buffering by passing around a flag.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-log.h')
-rw-r--r-- | qemu-log.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/qemu-log.h b/qemu-log.h index 4cdc7c7a47..5ccecf30af 100644 --- a/qemu-log.h +++ b/qemu-log.h @@ -142,7 +142,17 @@ typedef struct CPULogItem { extern const CPULogItem cpu_log_items[]; -void cpu_set_log(int log_flags); +void qemu_set_log(int log_flags, bool use_own_buffers); + +static inline void cpu_set_log(int log_flags) +{ +#ifdef CONFIG_USER_ONLY + qemu_set_log(log_flags, true); +#else + qemu_set_log(log_flags, false); +#endif +} + void cpu_set_log_filename(const char *filename); int cpu_str_to_log_mask(const char *str); |