Received: from eggs.gnu.org ([140.186.70.92]:44813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc1hw-00014q-Oe for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:50:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qc1hu-0003PO-Tw for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:50:00 -0400 Received: from mail-fx0-f47.google.com ([209.85.161.47]:40119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc1hu-0003PJ-J5 for qemu-devel@nongnu.org; Wed, 29 Jun 2011 16:49:58 -0400 Received: by fxg11 with SMTP id 11so1746452fxg.34 for ; Wed, 29 Jun 2011 13:49:57 -0700 (PDT) Date: Wed, 29 Jun 2011 22:49:54 +0200 From: "Edgar E. Iglesias" Message-ID: <20110629204954.GB32548@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Peter Maydell Cc: Riku Voipio , Juha =?iso-8859-1?Q?Riihim=E4ki?= , qemu-devel@nongnu.org, patches@linaro.org On Wed, Jun 29, 2011 at 09:39:52PM +0100, Peter Maydell wrote: > 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. Yes. I usually find -d exec good enough for this simple errors. The GDB connection I find useful for more complex hw-errors where PC location isn't enough to figure out what caused the hw-errror. I dont feel very strongly about it though. Cheers