Received: from eggs.gnu.org ([2001:4830:134:3::10]:48158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYsMK-0003lL-Lz for qemu-devel@nongnu.org; Mon, 07 Sep 2015 05:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYsME-0002ML-RO for qemu-devel@nongnu.org; Mon, 07 Sep 2015 05:05:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYsME-0002MF-La for qemu-devel@nongnu.org; Mon, 07 Sep 2015 05:04:58 -0400 From: Markus Armbruster References: <1441608340-26983-1-git-send-email-saipava@xilinx.com> <1441608340-26983-2-git-send-email-saipava@xilinx.com> <87h9n6smvc.fsf@blackfin.pond.sub.org> <4025671C58A6E340B47F5CA342BC783A42AAA1D5@XAP-PVEXMBX02.xlnx.xilinx.com> Date: Mon, 07 Sep 2015 11:04:55 +0200 In-Reply-To: <4025671C58A6E340B47F5CA342BC783A42AAA1D5@XAP-PVEXMBX02.xlnx.xilinx.com> (Sai Pavan Boddu's message of "Mon, 7 Sep 2015 07:47:39 +0000") Message-ID: <87zj0yob0o.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V3 2/2] sdhci: Change debug prints to compile unconditionally List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sai Pavan Boddu Cc: Edgar Iglesias , "peter.maydell@linaro.org" , "crosthwaitepeter@gmail.com" , Alistair Francis , "qemu-devel@nongnu.org" Sai Pavan Boddu writes: >> -----Original Message----- >> From: Markus Armbruster [mailto:armbru@redhat.com] >> Sent: Monday, September 07, 2015 1:05 PM >> To: Sai Pavan Boddu >> Cc: qemu-devel@nongnu.org; crosthwaitepeter@gmail.com; >> eblake@redhat.com; peter.maydell@linaro.org; Sai Pavan Boddu; Edgar >> Iglesias; Alistair Francis >> Subject: Re: [Qemu-devel] [PATCH V3 2/2] sdhci: Change debug prints to >> compile unconditionally >>=20 >> Sai Pavan Boddu writes: >>=20 >> > Conditionaly compilation hides few type mismatch warnings, fix it to >> > compile unconditioinal. >> > >> > Signed-off-by: Sai Pavan Boddu >> > Suggested-by: Eric Blake >>=20 >> No objection to this patch, but have you considered tracepoints? >> See docs/tracing.txt. > > [Sai Pavan ] No, I didn=E2=80=99t do that. Actually no knowledge on that.= Let > me figure it out what it does. Even better if you can just explain in > few lines, for what trace tool is used? For a simple example of how to convert from debug prints to tracepoints, check out commit f6e3534. Perhaps the simplest way to get the debugging output then is the "stderr" backend you get with "configure --enable-trace-backend=3Dstderr". Run QEMU with "-trace events=3Dfoo", where file foo contains a list of events to enable. To get all the tracepoints added by the commit above, try this one-element list: fw_cfg_* Hope this suffices to get you started.