* [Qemu-devel] [PATCH] cputlb: fix debug logs @ 2013-06-05 12:16 Hervé Poussineau 2013-06-05 19:51 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev 2013-06-14 10:16 ` Michael Tokarev 0 siblings, 2 replies; 4+ messages in thread From: Hervé Poussineau @ 2013-06-05 12:16 UTC (permalink / raw) To: qemu-devel; +Cc: qemu-trivial, Hervé Poussineau 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> --- cputlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cputlb.c b/cputlb.c index 86666c8..1230e9e 100644 --- a/cputlb.c +++ b/cputlb.c @@ -262,8 +262,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr, #if defined(DEBUG_TLB) printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx - " prot=%x idx=%d pd=0x%08lx\n", - vaddr, paddr, prot, mmu_idx, pd); + " prot=%x idx=%d\n", + vaddr, paddr, prot, mmu_idx); #endif address = vaddr; -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] cputlb: fix debug logs 2013-06-05 12:16 [Qemu-devel] [PATCH] cputlb: fix debug logs Hervé Poussineau @ 2013-06-05 19:51 ` Michael Tokarev 2013-06-14 14:11 ` Andreas Färber 2013-06-14 10:16 ` Michael Tokarev 1 sibling, 1 reply; 4+ messages in thread From: Michael Tokarev @ 2013-06-05 19:51 UTC (permalink / raw) To: Hervé Poussineau; +Cc: qemu-trivial, Blue Swirl, qemu-devel, Avi Kivity 05.06.2013 16:16, Hervé Poussineau wrote: > 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2. It's been removed indeed, but the value has been replaced by using a MemoryRegionSection instead. I understand current code is wrong when DEBUG_TLB is #defined, but I think it is also wrong to just remove this value in printf. The question is whenever this debugging is useful now, and whenever this now-missing value is interesting for that and should be provided by other means. Maybe we may just remove whole thing here and everywhere. Cc'ing authors. While this patch looks really trivial, it is something which is of use by the subsystem maintainer(s) at their disposal. Thanks, /mjt > Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> > --- > cputlb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/cputlb.c b/cputlb.c > index 86666c8..1230e9e 100644 > --- a/cputlb.c > +++ b/cputlb.c > @@ -262,8 +262,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr, > > #if defined(DEBUG_TLB) > printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx > - " prot=%x idx=%d pd=0x%08lx\n", > - vaddr, paddr, prot, mmu_idx, pd); > + " prot=%x idx=%d\n", > + vaddr, paddr, prot, mmu_idx); > #endif > > address = vaddr; > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] cputlb: fix debug logs 2013-06-05 19:51 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev @ 2013-06-14 14:11 ` Andreas Färber 0 siblings, 0 replies; 4+ messages in thread From: Andreas Färber @ 2013-06-14 14:11 UTC (permalink / raw) To: Michael Tokarev Cc: qemu-trivial, Blue Swirl, Hervé Poussineau, qemu-devel Am 05.06.2013 21:51, schrieb Michael Tokarev: > 05.06.2013 16:16, Hervé Poussineau wrote: >> 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2. > > It's been removed indeed, but the value has been replaced by using > a MemoryRegionSection instead. I understand current code is wrong > when DEBUG_TLB is #defined, but I think it is also wrong to just > remove this value in printf. The question is whenever this debugging > is useful now, and whenever this now-missing value is interesting > for that and should be provided by other means. Maybe we may just > remove whole thing here and everywhere. I interpret it as logging the function arguments, so dropping it sounded like the right solution to me. Would be nice to turn it into a tracepoint or at least some DPRINTF() macro that gets compile-tested. Andreas > > Cc'ing authors. > > While this patch looks really trivial, it is something which is of > use by the subsystem maintainer(s) at their disposal. > > Thanks, > > /mjt > >> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> >> --- >> cputlb.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/cputlb.c b/cputlb.c >> index 86666c8..1230e9e 100644 >> --- a/cputlb.c >> +++ b/cputlb.c >> @@ -262,8 +262,8 @@ void tlb_set_page(CPUArchState *env, target_ulong vaddr, >> >> #if defined(DEBUG_TLB) >> printf("tlb_set_page: vaddr=" TARGET_FMT_lx " paddr=0x" TARGET_FMT_plx >> - " prot=%x idx=%d pd=0x%08lx\n", >> - vaddr, paddr, prot, mmu_idx, pd); >> + " prot=%x idx=%d\n", >> + vaddr, paddr, prot, mmu_idx); >> #endif >> >> address = vaddr; >> > > -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] cputlb: fix debug logs 2013-06-05 12:16 [Qemu-devel] [PATCH] cputlb: fix debug logs Hervé Poussineau 2013-06-05 19:51 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev @ 2013-06-14 10:16 ` Michael Tokarev 1 sibling, 0 replies; 4+ messages in thread From: Michael Tokarev @ 2013-06-14 10:16 UTC (permalink / raw) To: Hervé Poussineau; +Cc: qemu-trivial, qemu-devel 05.06.2013 16:16, Hervé Poussineau wrote: > 'pd' variable has been removed in 06ef3525e1f271b6a842781a05eace5cf63b95c2. Thanks, applied to the trivial patches queue. /mjt ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-14 14:11 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-05 12:16 [Qemu-devel] [PATCH] cputlb: fix debug logs Hervé Poussineau 2013-06-05 19:51 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev 2013-06-14 14:11 ` Andreas Färber 2013-06-14 10:16 ` Michael Tokarev
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).