On 29 June 2011 21:07, Edgar E. Iglesias <edgar.igles...@gmail.com> 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 <peter.mayd...@linaro.org> > > 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