[Spice-devel] [PATCH spice-common] mem: Fix compile error if alignment-checks option is used

Frediano Ziglio fziglio at redhat.com
Thu Feb 21 10:49:19 UTC 2019


Domain name argument to spice_log was removed time ago.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 common/mem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/mem.c b/common/mem.c
index 8779282..ff11e5e 100644
--- a/common/mem.c
+++ b/common/mem.c
@@ -300,7 +300,7 @@ void spice_alignment_warning(const char *loc, void *p, unsigned sz)
     static const char *last_loc = NULL;
     if (loc != last_loc) {
         last_loc = loc;
-        spice_log(SPICE_LOG_DOMAIN, G_LOG_LEVEL_WARNING, loc, __FUNCTION__,
+        spice_log(G_LOG_LEVEL_WARNING, loc, __FUNCTION__,
                   "Misaligned access at %p, alignment %u", p, sz);
     }
 }
@@ -310,7 +310,7 @@ void spice_alignment_debug(const char *loc, void *p, unsigned sz)
     static const char *last_loc = NULL;
     if (loc != last_loc) {
         last_loc = loc;
-        spice_log(SPICE_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, loc, __FUNCTION__,
+        spice_log(G_LOG_LEVEL_DEBUG, loc, __FUNCTION__,
                   "Expected misaligned access at %p, alignment %u", p, sz);
     }
 }
-- 
2.20.1



More information about the Spice-devel mailing list