From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPpH7-00058I-Gs for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:53:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPpH1-0000lu-Bc for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:53:45 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:46108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPpH1-0000kE-0R for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:53:39 -0400 Message-ID: <540979E5.1010303@huawei.com> Date: Fri, 5 Sep 2014 10:52:53 +0200 From: Claudio Fontana MIME-Version: 1.0 References: <1409835061-19989-1-git-send-email-david.marchand@6wind.com> <1409835061-19989-2-git-send-email-david.marchand@6wind.com> <20140904155657.GD21203@redhat.com> In-Reply-To: <20140904155657.GD21203@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 1/3] contrib: add ivshmem client and server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , David Marchand Cc: Olivier Matz , kvm@vger.kernel.org, stefanha@gmail.com, armbru@redhat.com, qemu-devel@nongnu.org, arei.gonglei@huawei.com, mkletzan@redhat.com, pbonzini@redhat.com, jani.kokkonen@huawei.com, cam@cs.ualberta.ca Just to point out that for the client there is also a DEBUG_LOG to uppercase, just like already pointed out for the server. >> diff --git a/contrib/ivshmem-client/ivshmem-client.c b/contrib/ivshmem-client/ivshmem-client.c >> new file mode 100644 >> index 0000000..ad210c8 >> --- /dev/null >> +++ b/contrib/ivshmem-client/ivshmem-client.c >> @@ -0,0 +1,405 @@ >> +/* >> + * Copyright 6WIND S.A., 2014 >> + * >> + * This work is licensed under the terms of the GNU GPL, version 2 or >> + * (at your option) any later version. See the COPYING file in the >> + * top-level directory. >> + */ >> + >> +#include >> +#include >> +#include >> + >> +#include "qemu-common.h" >> +#include "qemu/queue.h" >> + >> +#include "ivshmem-client.h" >> + >> +/* log a message on stdout if verbose=1 */ >> +#define debug_log(client, fmt, ...) do { \ >> + if ((client)->verbose) { \ >> + printf(fmt, ## __VA_ARGS__); \ >> + } \ >> + } while (0) >> + ..here (DEBUG_LOG?) Thanks to all who are working on this. Claudio