[haiku-development] Re: Debugging in libroot and friends during startup

  • From: Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Fri, 9 Dec 2016 22:40:58 +1300

On 9 December 2016 at 21:45, Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> wrote:

9 décembre 2016 09:37 "Jessica Hamilton" <jessica.l.hamilton@xxxxxxxxx> a 
écrit:
On 9 December 2016 at 20:52, Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> 
wrote:

9 décembre 2016 07:32 "Jessica Hamilton" <jessica.l.hamilton@xxxxxxxxx> a 
écrit:
Hi,

How does one get debug output during startup from things like libroot?
Particularly with launch_daemon.

I tried using dprintf(), but I'm getting undefined references, so
that's probably not usable? And using syslog(), it appears to hang.
And I don't get output when using printf().

It seems the function to use from userland is debug_printf (from debug.h). 
dprintf is the
kernel-side counterpart.

Ah, that did the trick! So many debug functions :p

We need an article on the website explaining them all, it seems?

I think I was just getting frustrated :p probably could have found it
if I looked hard enough ;-) Anyway, now it's identified the problem...
just need to figure out the cause :p

Other related posts: