[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 8/9] spice: simple display
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH 8/9] spice: simple display |
Date: |
Thu, 19 Aug 2010 17:40:50 +0200 |
On 19.08.2010, at 17:34, Anthony Liguori wrote:
> On 08/19/2010 10:23 AM, malc wrote:
>>
>>>> +
>>>> +void qemu_spice_destroy_update(SimpleSpiceDisplay *sdpy, SimpleSpiceUpdate
>>>> *update)
>>>> +{
>>>> + qemu_free(update->bitmap);
>>>> + qemu_free(update);
>>>> +}
>>>> +
>>>> +void qemu_spice_create_host_memslot(SimpleSpiceDisplay *ssd)
>>>> +{
>>>> + QXLDevMemSlot memslot;
>>>> +
>>>> + if (debug)
>>>> + fprintf(stderr, "%s:\n", __FUNCTION__);
>>>>
>>>>
>>> a dprintf() would better fit qemu's style.
>>>
>> A dprintf is a POSIX function.
>>
>
> Apparently a recent POSIX function...
In my man page it's declared as
#define _GNU_SOURCE
#include <stdio.h>
int dprintf(int fd, const char *format, ...);
but maybe it did become POSIX recently. Either way, it's used already :).
> Preferred alternatives? I really dislike all caps macros.
printd should be fine.
Alex
- Re: [Qemu-devel] [PATCH 7/9] spice: add mouse, (continued)
- [Qemu-devel] [PATCH 9/9] spice: add tablet support, Gerd Hoffmann, 2010/08/19
- [Qemu-devel] [PATCH 8/9] spice: simple display, Gerd Hoffmann, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Anthony Liguori, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, malc, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Anthony Liguori, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, malc, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Anthony Liguori, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, malc, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Gerd Hoffmann, 2010/08/25
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Gerd Hoffmann, 2010/08/19
- Re: [Qemu-devel] [PATCH 8/9] spice: simple display, Anthony Liguori, 2010/08/19