[Spice-commits] common/log.h
Alon Levy
alon at kemper.freedesktop.org
Sun Jul 8 07:02:29 PDT 2012
common/log.h | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 2449260c81a6f5344214ee2a80c5566bec48aeee
Author: Alon Levy <alevy at redhat.com>
Date: Thu Jul 5 19:18:48 2012 +0300
common/log.h: add spice_info
diff --git a/common/log.h b/common/log.h
index 37c491f..d9e6023 100644
--- a/common/log.h
+++ b/common/log.h
@@ -85,6 +85,12 @@ void spice_log(const char *log_domain,
} SPICE_STMT_END
#endif
+#ifndef spice_info
+#define spice_info(format, ...) SPICE_STMT_START { \
+ spice_log(SPICE_LOG_DOMAIN, SPICE_LOG_LEVEL_INFO, SPICE_STRLOC, __FUNCTION__, format, ## __VA_ARGS__); \
+} SPICE_STMT_END
+#endif
+
#ifndef spice_debug
#define spice_debug(format, ...) SPICE_STMT_START { \
spice_log(SPICE_LOG_DOMAIN, SPICE_LOG_LEVEL_DEBUG, SPICE_STRLOC, __FUNCTION__, format, ## __VA_ARGS__); \
More information about the Spice-commits
mailing list