mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
qemu-log: fix x86 and user logging
5726c27fa9
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>
This commit is contained in:
parent
39a4ef1be6
commit
3437e54585
2 changed files with 24 additions and 20 deletions
12
qemu-log.h
12
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue