On Tue, Apr 14, 2015 at 03:20:08PM -0400, Gene Cumm wrote:> > I thought I would try to find out how pxelinux copes with this, by trying > > to insert printfs in pxe_init, but nothing gets printed. > > This is normal.Can you give me hint as to why setting> > DEBUGOPT = -DDEBUG=1 -DDEBUG_STDIO -DCORE_DEBUG=1changes that state of normality? (AFAICT dprintf.h defines dprintf to printf, so why wouldn't using printf directly work? printf.o gets built regardless of DEBUG settings AFAICT.)> > From looking at com32/include/dprintf.h, it looks as though all this does is > > to define dprintf to printf, so why is it that if don't define DEBUG_STDIO > > and CORE_DEBUG, and just use printf directly, nothing appears? > > If ldlinux.c32 isn't loaded, printf() shouldn't work though printf() > in 1 context might not be the same as another.So my assumption below is wrong? How does DEBUG_STDIO/CORE_DEBUG affect the loading of ldlinux.c32?> > I assume (given the dprintfs) that ldlinux.c32 is loaded by the time > > pxe_init is run, so printf calls should be legal.Thanks! Patrick
On Tue, Apr 14, 2015 at 7:13 PM, Patrick Welche <prlw1 at cam.ac.uk> wrote:> On Tue, Apr 14, 2015 at 03:20:08PM -0400, Gene Cumm wrote: >> > I thought I would try to find out how pxelinux copes with this, by trying >> > to insert printfs in pxe_init, but nothing gets printed. >> >> This is normal. > > Can you give me hint as to why setting > >> > DEBUGOPT = -DDEBUG=1 -DDEBUG_STDIO -DCORE_DEBUG=1 > > changes that state of normality?What commit ID or numerical version? -- -Gene
On Tue, Apr 14, 2015 at 07:47:05PM -0400, Gene Cumm wrote:> On Tue, Apr 14, 2015 at 7:13 PM, Patrick Welche <prlw1 at cam.ac.uk> wrote: > > On Tue, Apr 14, 2015 at 03:20:08PM -0400, Gene Cumm wrote: > >> > I thought I would try to find out how pxelinux copes with this, by trying > >> > to insert printfs in pxe_init, but nothing gets printed. > >> > >> This is normal. > > > > Can you give me hint as to why setting > > > >> > DEBUGOPT = -DDEBUG=1 -DDEBUG_STDIO -DCORE_DEBUG=1 > > > > changes that state of normality? > > What commit ID or numerical version?commit 81ad566f155fac31089fde69c87059b217e7e9b6 Author: H. Peter Anvin <hpa at zytor.com> Date: Mon Oct 6 09:27:44 2014 -0700 NEWS: Update for 6.03 release Cheers, Patrick