[syslinux] [PATCH 001/001] core/serial: Add support for serial output functions.

Raphael S Carvalho raphael.scarv at gmail.com
Thu Jul 11 22:36:19 PDT 2013


On Fri, Jul 12, 2013 at 2:21 AM, H. Peter Anvin <hpa at zytor.com> wrote:
> On 07/11/2013 10:16 PM, Raphael S.Carvalho wrote:
>> This patch adds support for serial output functions.
>> It may be useful for debugging purposes since you can separate ordinary outputs from debugging dumps.
>> Just add "serial.h", and use either serial_print or serial_puts as you would use printf and puts respectivelly.
>>
>> For QEMU, you only need to specify the option -serial stdio.
>> If you use another VM, find how you can redirect the serial port to stdio.
>>
>
> Hi,
>
> How does this differ from dprintf()?
>
>         -hpa
>
>

Enabling dprintf, a bunch of info will be dumped into serial line. I'm
not aware of filters for dprintf though.
By using this function, you can print out only what you're currently working on.

Regards, Raphael S. Carvalho.


More information about the Syslinux mailing list