From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc1YC-0006nl-Vu for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qc1YB-0001nH-FS for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:39:56 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:44665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc1YA-0001n2-Ow for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:39:55 -0400 Received: by pzk30 with SMTP id 30so1361509pzk.4 for ; Wed, 29 Jun 2011 13:39:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20110629200711.GA32548@laped.lan> References: <1309373591-30380-1-git-send-email-peter.maydell@linaro.org> <1309373591-30380-3-git-send-email-peter.maydell@linaro.org> <20110629200711.GA32548@laped.lan> Date: Wed, 29 Jun 2011 21:39:52 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 2/3] hw/omap_gpio.c: Don't complain about some writes to r/o registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Riku Voipio , =?UTF-8?Q?Juha_Riihim=C3=A4ki?= , qemu-devel@nongnu.org, patches@linaro.org On 29 June 2011 21:07, Edgar E. Iglesias wrote: > On Wed, Jun 29, 2011 at 07:53:10PM +0100, Peter Maydell wrote: >> Don't complain about some writes to r/o OMAP2 GPIO registers, because the >> kernel will do them anyway. >> >> Signed-off-by: Peter Maydell > > Hi Peter, > > I usually find this kind of logs useful. > Maybe we should turn them into _log_mask(~0, xxx) so they only come out > when -d is enabled? I think the ideal would be to have all of this kind of message go through some consistent path (ie not just printf) so you could tell all of qemu "I'm doing OS development, warn about things which indicate driver bugs" vs the more common "I'm just a user and I don't really care". You'd also want to be able to trace the guest program counter and to do things like drop into gdb if running with the gdb stub enabled. In the absence of that kind of infrastructure I tend to default to removing this kind of printf or relegating it to DPRINTF. -- PMM