spice-common subdomains created in this patch are: "log" : log.c, rop3.c (should be generic subdomain) "canvas" : canvas_utils.c and canvas_base.c "compression": lz.c, quic.c "memory" : mem.c "pixman" : pixman_utils.c "region" : region.c "ssl" : ssl_verify.c --- common/canvas_base.c | 3 ++- common/canvas_utils.c | 1 + common/log.c | 2 ++ common/lz.c | 2 ++ common/marshaller.c | 1 + common/mem.c | 1 + common/pixman_utils.c | 1 + common/quic.c | 4 +++- common/region.c | 2 ++ common/rop3.c | 4 +++- common/ssl_verify.c | 3 ++- 11 files changed, 20 insertions(+), 4 deletions(-) diff --git a/common/canvas_base.c b/common/canvas_base.c index fa4d373..c2348d7 100644 --- a/common/canvas_base.c +++ b/common/canvas_base.c @@ -19,6 +19,8 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif +#include "log.h" +SPICE_LOG_DOMAIN_STATIC("canvas"); #include <stdarg.h> #include <stdlib.h> @@ -33,7 +35,6 @@ #include <lz4.h> #endif #include <spice/macros.h> -#include "log.h" #include "quic.h" #include "lz.h" #include "canvas_base.h" diff --git a/common/canvas_utils.c b/common/canvas_utils.c index c5813f4..f86451b 100644 --- a/common/canvas_utils.c +++ b/common/canvas_utils.c @@ -19,6 +19,7 @@ #include <config.h> #endif #include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("canvas"); #include "canvas_utils.h" #include "mem.h" diff --git a/common/log.c b/common/log.c index 5dcb4e7..ead16d2 100644 --- a/common/log.c +++ b/common/log.c @@ -32,6 +32,8 @@ #include "log.h" #include "backtrace.h" +SPICE_LOG_DOMAIN_STATIC("log"); + const gchar *spice_debug_env = NULL; static int glib_debug_level = 0; diff --git a/common/lz.c b/common/lz.c index d1c4033..7bfaed8 100644 --- a/common/lz.c +++ b/common/lz.c @@ -48,6 +48,8 @@ #endif #include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("compression") + #include "lz.h" #define HASH_LOG 13 diff --git a/common/marshaller.c b/common/marshaller.c index 00a7123..700a011 100644 --- a/common/marshaller.c +++ b/common/marshaller.c @@ -20,6 +20,7 @@ #endif #include "log.h" +SPICE_LOG_DOMAIN_STATIC("marshaller") #include "marshaller.h" #include "mem.h" #include <string.h> diff --git a/common/mem.c b/common/mem.c index e430b5d..dbd6388 100644 --- a/common/mem.c +++ b/common/mem.c @@ -20,6 +20,7 @@ #endif #include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("memory") #include "mem.h" #include <string.h> diff --git a/common/pixman_utils.c b/common/pixman_utils.c index 81806c9..7007c41 100644 --- a/common/pixman_utils.c +++ b/common/pixman_utils.c @@ -19,6 +19,7 @@ #include <config.h> #endif #include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("pixman") #include "pixman_utils.h" diff --git a/common/quic.c b/common/quic.c index 88cf143..72be958 100644 --- a/common/quic.c +++ b/common/quic.c @@ -23,10 +23,12 @@ #include <config.h> #endif +#include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("compression") + #include <glib.h> #include "quic.h" -#include "spice_common.h" #include "bitops.h" #define RLE diff --git a/common/region.c b/common/region.c index 14a27ed..f00a912 100644 --- a/common/region.c +++ b/common/region.c @@ -18,6 +18,8 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif +#include "log.h" +SPICE_LOG_DOMAIN_STATIC("region"); #include <stdio.h> #include <string.h> diff --git a/common/rop3.c b/common/rop3.c index 1a18fe9..4f79a03 100644 --- a/common/rop3.c +++ b/common/rop3.c @@ -19,8 +19,10 @@ #include <config.h> #endif -#include "rop3.h" #include "spice_common.h" +SPICE_LOG_DOMAIN_STATIC("common"); + +#include "rop3.h" typedef void (*rop3_with_pattern_handler_t)(pixman_image_t *d, pixman_image_t *s, SpicePoint *src_pos, pixman_image_t *p, diff --git a/common/ssl_verify.c b/common/ssl_verify.c index 601252e..1ef1d19 100644 --- a/common/ssl_verify.c +++ b/common/ssl_verify.c @@ -19,10 +19,11 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif +#include "log.h" +SPICE_LOG_DOMAIN_STATIC("ssl"); #include "mem.h" #include "ssl_verify.h" -#include "log.h" #ifndef WIN32 #include <sys/socket.h> -- 2.5.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel