Hi Meenakshi,
On 29.01.2014 12:09, Meenakshi Narayanan wrote:
> Hello,
>
> The structure of Genode::printf is quite interesting. Running the
> test-printf scenario with PDBG("Hello World") works fine. It simply
> prints 'int main(int, char**): Hello World!'
>
> Looking up the definition for the Genode printf in base/printf.h was
> not so revealing. What makes the "-1 = -1 = -1" regex special that
> init refuses to spawn the init->test-printf child process?
>
> Regards
> Meenakshi
>
I guess it works with PDBG in contrast to printf because PDBG (as well
as PINF, PLOG, and PERR) are macros that add a line-break to the end of
an input string, which in turn causes the string to be send to the
LOG-session server immediately. However, the backend of these macros is
the Genode::printf function that leaves things like line-breaks and
coloring sequences in the hand of the user.
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Genode-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/genode-main