mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-07 10:07:52 +00:00
common/log.h: add spice_info
This commit is contained in:
parent
f8f6231ecd
commit
2449260c81
@ -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__); \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user