summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-07-05 19:18:48 +0300
committerAlon Levy <alevy@redhat.com>2012-07-05 19:22:31 +0300
commit2449260c81a6f5344214ee2a80c5566bec48aeee (patch)
treef9d8d83ac61491cbe7f45b4d918f17aebbb2b977
parentf8f6231ecdb99595a07e6c3933dedd7438ef4f1d (diff)
common/log.h: add spice_info
-rw-r--r--common/log.h6
1 files changed, 6 insertions, 0 deletions
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__); \