[openbeos] dprintf help

Hello,

I tried making a device driver for in the kernel, it works for some parts, but of course there are bugs ...
I tried using dprintf (), and then doing 'cat /dev/dprintf' ,but nothing seemed to happen.
i first did "cat /dev/dprinf", and then ran my test program. The code i used to do dprintf was like this:


set_dprintf_enabled (true);
dprintf ("hello world!");
set_dprintf_enabled (false);

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...


Eike


Other related posts: