<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/syslinux.git/com32/include/dprintf.h, branch syslinux-6.03-pre1</title>
<subtitle>git.kernel.org: pub/scm/boot/syslinux/syslinux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/'/>
<entry>
<title>Merge branch 'elflink-pxe-fixes-for-mfleming-2' of git://github.com/geneC/syslinux into firmware</title>
<updated>2013-09-30T12:33:26+00:00</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2013-09-30T12:22:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=47179ebc03dcb3177312d97cd912605704c40686'/>
<id>47179ebc03dcb3177312d97cd912605704c40686</id>
<content type='text'>
Pull various network stack fixes from Gene Cumm and adapt to the 6.xx
core_udp_* API,

* 'elflink-pxe-fixes-for-mfleming-2' of git://github.com/geneC/syslinux:
  PXE ISR: Force polling on select hardware WORKAROUND
  core/lwip: Fix NULL pointer check
  PXE: use ddprintf macro
  com32: Define ddprintf() macro
  PXELINUX: specify PXE/lwIP
  undiif: show thread of execution on UNDIIF_ID_DEBUG
  core: dprintf() the banner.
  PXELINUX: Use sendto() instead of connect()/send()/disconnect()
  core: make mbox_post()/__sem_down_slow() check if valid
  core: mbox/semaphore NULL checks
  core/lwip/undi: Improve UNDIIF_ID_DEBUG messages

Conflicts:
	core/fs/pxe/pxe.c
	core/fs/pxe/tftp.c
	core/init.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull various network stack fixes from Gene Cumm and adapt to the 6.xx
core_udp_* API,

* 'elflink-pxe-fixes-for-mfleming-2' of git://github.com/geneC/syslinux:
  PXE ISR: Force polling on select hardware WORKAROUND
  core/lwip: Fix NULL pointer check
  PXE: use ddprintf macro
  com32: Define ddprintf() macro
  PXELINUX: specify PXE/lwIP
  undiif: show thread of execution on UNDIIF_ID_DEBUG
  core: dprintf() the banner.
  PXELINUX: Use sendto() instead of connect()/send()/disconnect()
  core: make mbox_post()/__sem_down_slow() check if valid
  core: mbox/semaphore NULL checks
  core/lwip/undi: Improve UNDIIF_ID_DEBUG messages

Conflicts:
	core/fs/pxe/pxe.c
	core/fs/pxe/tftp.c
	core/init.c
</pre>
</div>
</content>
</entry>
<entry>
<title>com32: Define ddprintf() macro</title>
<updated>2013-09-23T21:25:32+00:00</updated>
<author>
<name>Gene Cumm</name>
<email>gene.cumm@gmail.com</email>
</author>
<published>2013-08-16T16:54:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=cfc678be72a9d93c6d7511d585cfcfd75e63bb11'/>
<id>cfc678be72a9d93c6d7511d585cfcfd75e63bb11</id>
<content type='text'>
Duplicating Debug Printf;  Certain warning/error printf()
 statements are not visible if they occur before ldlinux.c32
 is loaded

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Duplicating Debug Printf;  Certain warning/error printf()
 statements are not visible if they occur before ldlinux.c32
 is loaded

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'syslinux-5.11-pre8' into firmware</title>
<updated>2013-07-08T15:23:45+00:00</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2013-07-08T15:23:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=3aa295d25bda39afee12b015523f222ce7940079'/>
<id>3aa295d25bda39afee12b015523f222ce7940079</id>
<content type='text'>
syslinux-5.11-pre8

Conflicts:
	NEWS
	com32/lib/Makefile
	core/conio.c
	mk/devel.mk
	mk/elf.mk
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
syslinux-5.11-pre8

Conflicts:
	NEWS
	com32/lib/Makefile
	core/conio.c
	mk/devel.mk
	mk/elf.mk
</pre>
</div>
</content>
</entry>
<entry>
<title>debug.c32: Dynamically enable/disable debug code at runtime</title>
<updated>2013-07-05T12:50:03+00:00</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2013-06-28T19:53:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=487f7581b4a4639d237a4a27a50252adabac62af'/>
<id>487f7581b4a4639d237a4a27a50252adabac62af</id>
<content type='text'>
It's useful to be able to enable (and disable) debug code at runtime,
particularly for allowing users that are unable to build their own
Syslinux releases the chance to provide useful debugging output.

For example, say a user reports trouble with their PXE stack but doesn't
have a development environment setup to turn on the debug code
themselves. With this change you can simply request that they do,

    debug.c32 -e pxe_call unload_pxe open_file

to enable the debug in those functions. By only turning on code in
specific functions we reduce the chance of disrupting the buggy
behaviour and improve the signal to noise ratio for print statements.

To disable debug code use the -d flag,

    debug.c32 -d pxe_call

To use this new feature simply do,

    if (syslinux_debug_enabled) {
        debug1();
        debug2();
        ....
    }

from within the function you wish to add debug code. Note that this
feature is not limited to print statements - you can put any code within
the conditional, such as verifying a checksum or checking for memory
leaks.

The plan is to leave the dynamic debug code built in for all prereleases
and to turn it off for final releases.

People may still want to build with all dprintf() statements enabled,
and so a new symbol, DYNAMIC_DEBUG, was introduced rather than
repurposing the old DEBUG, DEBUG_STDIO and DEBUG_PORT symbols.

Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's useful to be able to enable (and disable) debug code at runtime,
particularly for allowing users that are unable to build their own
Syslinux releases the chance to provide useful debugging output.

For example, say a user reports trouble with their PXE stack but doesn't
have a development environment setup to turn on the debug code
themselves. With this change you can simply request that they do,

    debug.c32 -e pxe_call unload_pxe open_file

to enable the debug in those functions. By only turning on code in
specific functions we reduce the chance of disrupting the buggy
behaviour and improve the signal to noise ratio for print statements.

To disable debug code use the -d flag,

    debug.c32 -d pxe_call

To use this new feature simply do,

    if (syslinux_debug_enabled) {
        debug1();
        debug2();
        ....
    }

from within the function you wish to add debug code. Note that this
feature is not limited to print statements - you can put any code within
the conditional, such as verifying a checksum or checking for memory
leaks.

The plan is to leave the dynamic debug code built in for all prereleases
and to turn it off for final releases.

People may still want to build with all dprintf() statements enabled,
and so a new symbol, DYNAMIC_DEBUG, was introduced rather than
repurposing the old DEBUG, DEBUG_STDIO and DEBUG_PORT symbols.

Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>core: Rename DEBUG macro to avoid gnu-efi library conflict</title>
<updated>2012-09-04T17:49:39+00:00</updated>
<author>
<name>Chandramouli Narayanan</name>
<email>chandramouli.narayanan@intel.com</email>
</author>
<published>2012-09-01T14:10:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=d1e4387577da5a5bc291a112aa51da6f8f1869cc'/>
<id>d1e4387577da5a5bc291a112aa51da6f8f1869cc</id>
<content type='text'>
Use of DEBUG macro clases with gnu-efi library. This patch defines
CORE_DEBUG. Appropriate changes to sources are made as a result. Also,
the linker error on __bad_SEG is fixed.

Signed-off-by: Chandramouli Narayanan &lt;chandramouli.narayanan@intel.com&gt;
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use of DEBUG macro clases with gnu-efi library. This patch defines
CORE_DEBUG. Appropriate changes to sources are made as a result. Also,
the linker error on __bad_SEG is fixed.

Signed-off-by: Chandramouli Narayanan &lt;chandramouli.narayanan@intel.com&gt;
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Only compile dprintf/vdprintf if DEBUG_PORT is defined</title>
<updated>2012-07-19T15:42:32+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2012-07-19T15:42:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=ff7334a2ce536b7f4b1f6d6f93ff4e285a3bd45a'/>
<id>ff7334a2ce536b7f4b1f6d6f93ff4e285a3bd45a</id>
<content type='text'>
We really, really don't want to accidentally spew output to a debug
port in production, so make it obligatory to define DEBUG_PORT or
DEBUG_STDIO in order for the debugging code to be compiled in.  Since
DEBUG_STDIO just turns the debugging code into stdio references, we
only need to compile the code for the DEBUG_PORT case.

Add a commented-out line to mk/devel.mk to make it easier for users.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: Matt Fleming &lt;matt.fleming@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We really, really don't want to accidentally spew output to a debug
port in production, so make it obligatory to define DEBUG_PORT or
DEBUG_STDIO in order for the debugging code to be compiled in.  Since
DEBUG_STDIO just turns the debugging code into stdio references, we
only need to compile the code for the DEBUG_PORT case.

Add a commented-out line to mk/devel.mk to make it easier for users.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: Matt Fleming &lt;matt.fleming@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dprintf: always define dprintf2/vdprintf2</title>
<updated>2012-05-18T23:03:47+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-06-21T04:33:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=28b6380be03908a3c3a7a93254e9dcbc0e74592a'/>
<id>28b6380be03908a3c3a7a93254e9dcbc0e74592a</id>
<content type='text'>
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always define dprintf2/vdprintf2 even with no debugging at all
enabled.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dprintf: add the ability to log to stdio</title>
<updated>2012-05-18T23:03:19+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-06-21T04:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=df61c3b05b3a42b4202b74c1239576103b153e50'/>
<id>df61c3b05b3a42b4202b74c1239576103b153e50</id>
<content type='text'>
Add the ability to redirect dprintf to stdio when there is no other
choice.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;

Resolved Conflicts:

	com32/lib/dprintf.c
	com32/lib/vdprintf.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the ability to redirect dprintf to stdio when there is no other
choice.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;

Resolved Conflicts:

	com32/lib/dprintf.c
	com32/lib/vdprintf.c
</pre>
</div>
</content>
</entry>
<entry>
<title>dprintf: fix uninitialized pointer; return void</title>
<updated>2009-11-20T00:52:11+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2009-11-20T00:52:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=bc06fce990b5bb8559d37eb2d2a7aa8c69ca024b'/>
<id>bc06fce990b5bb8559d37eb2d2a7aa8c69ca024b</id>
<content type='text'>
Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dprintf: a generic debug-to-serial infrastructure</title>
<updated>2009-11-19T19:10:00+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2009-11-19T19:10:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=709cdd1bfa7aace9c76016a15f55b3005b843cc8'/>
<id>709cdd1bfa7aace9c76016a15f55b3005b843cc8</id>
<content type='text'>
Actually provide real infrastructure for debug-to-serial.  Very
useful when debugging fullscreen applications, especially under an
emulator like Qemu.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Actually provide real infrastructure for debug-to-serial.  Very
useful when debugging fullscreen applications, especially under an
emulator like Qemu.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
