mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
log: do not use CONFIG_USER_ONLY
This decouples logging further from config-target.h Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4b4629d9d2
commit
f2937a33a5
4 changed files with 14 additions and 17 deletions
|
@ -104,21 +104,8 @@ typedef struct QEMULogItem {
|
|||
|
||||
extern const QEMULogItem qemu_log_items[];
|
||||
|
||||
/* This is the function that actually does the work of
|
||||
* changing the log level; it should only be accessed via
|
||||
* the qemu_set_log() wrapper.
|
||||
*/
|
||||
void do_qemu_set_log(int log_flags, bool use_own_buffers);
|
||||
|
||||
static inline void qemu_set_log(int log_flags)
|
||||
{
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
do_qemu_set_log(log_flags, true);
|
||||
#else
|
||||
do_qemu_set_log(log_flags, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
void qemu_set_log(int log_flags);
|
||||
void qemu_log_needs_buffers(void);
|
||||
void qemu_set_log_filename(const char *filename);
|
||||
void qemu_set_dfilter_ranges(const char *ranges);
|
||||
bool qemu_log_in_addr_range(uint64_t addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue