Received: from eggs.gnu.org ([2001:4830:134:3::10]:49389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZjQL-00022e-05 for qemu-devel@nongnu.org; Wed, 19 Dec 2018 16:30:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZjQK-0004aS-4l for qemu-devel@nongnu.org; Wed, 19 Dec 2018 16:30:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58970) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZjQJ-0004Zj-Rc for qemu-devel@nongnu.org; Wed, 19 Dec 2018 16:30:36 -0500 References: <20181207131732.21073-1-lvivier@redhat.com> <5206f22c-a472-2f17-e9e9-adf7960fb6cb@redhat.com> From: Paolo Bonzini Message-ID: <90581a67-61d5-46e8-1a6c-5e0e342c6546@redhat.com> Date: Wed, 19 Dec 2018 22:30:19 +0100 MIME-Version: 1.0 In-Reply-To: <5206f22c-a472-2f17-e9e9-adf7960fb6cb@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] scsi-disk: Convert from DPRINTF() macro to trace events List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: Fam Zheng , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= On 07/12/18 17:37, Laurent Vivier wrote: >> TIL about trace_event_get_state_backends(), I'll use it to clean other >> hexdump traces, thanks :) > I've copied that from gdbstub.c where there is an hexdump() function > using it. > > I'm going to send a v2 of this patch, because I think it is not needed > in this case to pass the function in the parameters. I think it's better like this, you'd have to free the buffer in the caller and that's also ugly. Paolo