[openbeos] Re: dprintf help

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Mon, 27 Jan 2003 04:36:50 +0100 CET

Eike Dehling <e.e.dehling@xxxxxxxxxxxxxxxxxx> wrote:
> 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:

I don't know if there are other ways, but you can do it like this:
- enable syslog output in the kernel settings file (~/config/settings/
kernel/drivers/kernel), reboot
- open a terminal and do "tail -fname /var/log/syslog" and you'll see 
your debug output

Adios...
   Axel.



Other related posts: