core: remove hardcoded 'init' from Log output

Until now the print procedure call in the Log_session_component
did contain a hardcoded 'init' string. Adding a method to filter
the session args to prefix the label and labelling the initial
Cpu_connection for the init-process enabled us to remove the
hardcoded string.

Fixes #789.
This commit is contained in:
Josef Söntgen 2013-05-08 11:05:43 +02:00 committed by Norman Feske
parent 136af3764d
commit cb76c0c45f

View File

@ -70,8 +70,7 @@ namespace Genode {
return len;
}
printf("[init%s%s] %s", strcmp(_label, "") == 0 ? "" : " -> ",
_label, string);
printf("[%s] %s", _label, string);
/* if last character of string was not a line break, add one */
if ((len > 0) && (string[len - 1] != '\n'))