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?