From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhzbH-00059L-Q5 for qemu-devel@nongnu.org; Wed, 07 May 2014 07:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhzbB-0000oA-MV for qemu-devel@nongnu.org; Wed, 07 May 2014 07:01:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhzbB-0000o4-FI for qemu-devel@nongnu.org; Wed, 07 May 2014 07:01:17 -0400 Message-ID: <536A1278.1070506@redhat.com> Date: Wed, 07 May 2014 13:01:12 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1398594570-14015-1-git-send-email-kroosec@gmail.com> <20140505143330.0d9794ab@redhat.com> In-Reply-To: <20140505143330.0d9794ab@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] monitor: Add info qom-tree subcommand. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino , Hani Benhabiles Cc: armbru@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, afaerber@suse.de Il 05/05/2014 20:33, Luiz Capitulino ha scritto: >> + data = object_property_get_qobject(obj, info->name, NULL); >> + if (!data) { >> + list = list->next; >> + continue; You could use object_property_print and get rid of a relatively large amount of code. Apart from this, the patch is definitely useful. Paolo