[openbeos] Re: dprintf help

> The terminal with 'cat /dev/dprintf' did not get the message however.
> 
> The Be Book says dprintf (); outputs to the com1 serial port. So do i
> have to plug another PC into the serial port, or is it possible to 
> do 'cat /dev/dprintf' or something like that ? I'd really 
> prefer the latter...

AFAIK, the /dev/dprintf *device* is directly hooked to the kernel dprintf() 
call. 

So:
- it's only an output device, you can't cat or tail or whatever which will 
read() from it, it doesn't work.
- it output thru the kernel debug output settings, which are by default 
in vanilla R5 disabled, but can be enabled by calling set_dprintf_enabled(true)
or set the corresponding debug output settings in your 
~/config/settings/kernel/drivers/kernel file.
The output can be or serial port or /var/log/syslog file.

-Philippe

Other related posts: