aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-11 16:41:23 +0000
committerBlue Swirl <blauwirbel@gmail.com>2013-02-16 10:44:44 +0000
commit24537a01910f110fe3e343c13df13e48f7968a9e (patch)
treeb096f048bd4116bea4f781c33276a7b5ecb9f47f /include
parent4fde1eba0f98779d4fdb64818071f72bb1672438 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/log.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h
index 10792ce0d1..5dcbe11d47 100644
--- a/include/qemu/log.h
+++ b/include/qemu/log.h
@@ -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
}