From cb76c0c45fd4a18048dcc238d81c82bc164e019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Wed, 8 May 2013 11:05:43 +0200 Subject: [PATCH] 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. --- base/src/core/include/log_session_component.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/core/include/log_session_component.h b/base/src/core/include/log_session_component.h index 725c80142a..b4fc7a7b87 100644 --- a/base/src/core/include/log_session_component.h +++ b/base/src/core/include/log_session_component.h @@ -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'))