From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwrJH-0005ik-P3 for qemu-devel@nongnu.org; Thu, 02 Aug 2012 05:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwrJD-0005wL-RF for qemu-devel@nongnu.org; Thu, 02 Aug 2012 05:03:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwrJD-0005wF-Io for qemu-devel@nongnu.org; Thu, 02 Aug 2012 05:03:07 -0400 Message-ID: <501A4242.6000307@redhat.com> Date: Thu, 02 Aug 2012 11:02:58 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1343839312-24030-1-git-send-email-pbonzini@redhat.com> <1343839312-24030-5-git-send-email-pbonzini@redhat.com> <87k3xh3c5h.fsf@elfo.mitica> In-Reply-To: <87k3xh3c5h.fsf@elfo.mitica> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/10] vmstate: add VMSTATE_TIMER_V List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: yang.z.zhang@intel.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com Il 02/08/2012 10:56, Juan Quintela ha scritto: >> > @@ -503,8 +503,11 @@ extern const VMStateInfo vmstate_info_unused_buffer; >> > #define VMSTATE_TIMER_TEST(_f, _s, _test) \ >> > VMSTATE_POINTER_TEST(_f, _s, _test, vmstate_info_timer, QEMUTimer *) >> > >> > +#define VMSTATE_TIMER_V(_f, _s, _v) \ >> > + VMSTATE_POINTER(_f, _s, _v, vmstate_info_timer, QEMUTimer *) >> > + >> > #define VMSTATE_TIMER(_f, _s) \ >> > - VMSTATE_TIMER_TEST(_f, _s, NULL) >> > + VMSTATE_POINTER(_f, _s, 0, vmstate_info_timer, QEMUTimer *) > You didn't did it, it should be something like: > > #define VMSTATE_TIMER(_f, _s) \ > - VMSTATE_TIMER_TEST(_f, _s, NULL) > + VMSTATE_TIMER_V(_f, _s, 0) I'm following the other examples: #define VMSTATE_UINT16_EQUAL(_f, _s) \ VMSTATE_SINGLE(_f, _s, 0, vmstate_info_uint16_equal, uint16_t) #define VMSTATE_UINT16_EQUAL_V(_f, _s, _v) \ VMSTATE_SINGLE(_f, _s, _v, vmstate_info_uint16_equal, uint16_t) but I can change it as you indicated. Paolo