[Spice-commits] 2 commits - common/log.c common/mem.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 21 13:45:01 UTC 2019
common/log.c | 6 ------
common/mem.c | 4 ++--
2 files changed, 2 insertions(+), 8 deletions(-)
New commits:
commit e8c76358eedba0a487886a19a2d3f540f9f7d902
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Feb 20 17:38:21 2019 +0000
log: Remove useless includes
Now the function almost uses GLib function, no reason to include
some system headers.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/common/log.c b/common/log.c
index 054fd7f..b73da71 100644
--- a/common/log.c
+++ b/common/log.c
@@ -21,12 +21,6 @@
#include <glib.h>
#include <stdlib.h>
-#include <stdio.h>
-#include <sys/types.h>
-#ifndef _MSC_VER
-#include <unistd.h>
-#endif
-
#include <common/recorder.h>
#include "log.h"
commit 4ccc20a7f6fb06f6971f1a63a576fadddfb671c8
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Feb 20 17:38:02 2019 +0000
mem: Fix compile error if alignment-checks option is used
Domain name argument to spice_log was removed time ago.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
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);
}
}
More information about the Spice-commits
mailing list