From: Alexander Graf Subject: Re: [PATCH v2 12/15] target-ppc: Refactor debug output macros Date: Mon, 25 Feb 2013 14:51:45 +0100 Message-ID: <367B1976-009E-4273-90FF-AE02B2F49A29@suse.de> References: <1361420711-15698-1-git-send-email-afaerber@suse.de> <1361420711-15698-13-git-send-email-afaerber@suse.de> <512B63AA.7070109@suse.de> Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: qemu-devel@nongnu.org, Gleb Natapov , Marcelo Tosatti , PowerPC , Overall To: =?iso-8859-1?Q?Andreas_F=E4rber?= Return-path: Received: from cantor2.suse.de ([195.135.220.15]:48853 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757326Ab3BYNvs convert rfc822-to-8bit (ORCPT ); Mon, 25 Feb 2013 08:51:48 -0500 In-Reply-To: <512B63AA.7070109@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: On 25.02.2013, at 14:14, Andreas F=E4rber wrote: > Am 25.02.2013 13:54, schrieb Alexander Graf: >>=20 >> On 21.02.2013, at 05:25, Andreas F=E4rber wrote: >>=20 >>> Make debug output compile-testable even if disabled. >>>=20 >>> Rename dprintf() in kvm.c to kvm_dprintf() to avoid conflict with g= libc. >>>=20 >>> Inline DEBUG_OP check in excp_helper.c. >>> Inline LOG_MMU_STATE() in mmu_helper.c. >>> Inline PPC_{DEBUG_SPR,DUMP_SPR_ACCESSES} checks in translate_init.c= =2E >>>=20 >>> Signed-off-by: Andreas F=E4rber >>=20 >> I assume you verified that all the bits do get optimized out, right?= :) >=20 > No, I didn't for each, my focus was to make debug code compile and ke= ep > it compiling after my CPU changes. :) >=20 > Please read up on the new discussion of rth not liking static const a= nd > proposing to go back to v1, modulo do { ... } while (0). >=20 > Like I said there, if finding a solution that pleases everyone fails, > then I will leave it to the maintainers (i.e., you) to choose and app= ly > a solution or to live with the resulting breakages. I care about 2 things: * #ifdef works * if not defined then the code should get optimized out :). Everything else is icing on top. Alex