From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKPNW-0001P2-6N for qemu-devel@nongnu.org; Mon, 03 Mar 2014 04:41:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKPNR-0000yV-9T for qemu-devel@nongnu.org; Mon, 03 Mar 2014 04:41:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKPNR-0000yN-1O for qemu-devel@nongnu.org; Mon, 03 Mar 2014 04:41:37 -0500 Date: Mon, 3 Mar 2014 10:41:30 +0100 From: Stefan Hajnoczi Message-ID: <20140303094130.GE4780@stefanha-thinkpad.redhat.com> References: <1393600696-24118-1-git-send-email-stefanha@redhat.com> <1393600696-24118-6-git-send-email-stefanha@redhat.com> <5310BE05.2060002@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <5310BE05.2060002@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v5 5/7] qdev: make get_pointer() handle temporary strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Kevin Wolf , Fam Zheng , Michael Roth , qemu-devel@nongnu.org, Paolo Bonzini , Igor Mammedov On Fri, Feb 28, 2014 at 05:49:09PM +0100, Andreas F=E4rber wrote: > Am 28.02.2014 16:18, schrieb Stefan Hajnoczi: > > From: Igor Mammedov > >=20 > > get_pointer()'s print() callback might return a heap allocated > > string, to avoid adding dedicated get_pointer_foo for this case > > convert current print() callbacks to return temporary heap > > allocated string and make get_pointer() free it. > >=20 > > Signed-off-by: Igor Mammedov > > Signed-off-by: Stefan Hajnoczi > > --- > > hw/core/qdev-properties-system.c | 19 +++++++++++-------- > > 1 file changed, 11 insertions(+), 8 deletions(-) >=20 > Not aware of the history of this patch (not CC'ed?) but looks okay, >=20 > Reviewed-by: Andreas F=E4rber >=20 > Do we have any users outside of this series? The patch comes from Igor originally so maybe he has future patches that will use it. Stefan