mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qemu-log: Rename the public-facing cpu_set_log function to qemu_set_log
Rename the public-facing function cpu_set_log to qemu_set_log. This requires us to rename the internal-only qemu_set_log() to do_qemu_set_log(). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
4fde1eba0f
commit
24537a0191
9 changed files with 17 additions and 13 deletions
|
@ -143,14 +143,18 @@ typedef struct CPULogItem {
|
|||
|
||||
extern const CPULogItem cpu_log_items[];
|
||||
|
||||
void qemu_set_log(int log_flags, bool use_own_buffers);
|
||||
/* 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 cpu_set_log(int log_flags)
|
||||
static inline void qemu_set_log(int log_flags)
|
||||
{
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
qemu_set_log(log_flags, true);
|
||||
do_qemu_set_log(log_flags, true);
|
||||
#else
|
||||
qemu_set_log(log_flags, false);
|
||||
do_qemu_set_log(log_flags, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue