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

Christophe Fergeau cfergeau at redhat.com
Thu Feb 21 13:43:03 UTC 2019


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Thu, Feb 21, 2019 at 10:49:19AM +0000, Frediano Ziglio wrote:
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190221/f9112678/attachment.sig>


More information about the Spice-devel mailing list