[Spice-devel,spice-common] common/log.h: add spice_info

Submitted by Alon Levy on July 5, 2012, 4:20 p.m.

Details

Message ID 1341505220-6282-1-git-send-email-alevy@redhat.com
State Accepted
Commit 2449260c81a6f5344214ee2a80c5566bec48aeee
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy July 5, 2012, 4:20 p.m.
---
 common/log.h |    6 ++++++
 1 file changed, 6 insertions(+)

Patch hide | download patch | download mbox

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__); \