mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 12:48:20 +00:00
base-*: remove usage of printf
base generic code: * Remove unused verbosity code from mmio framework * Remove escape sequence end heuristic from LOG * replace Core_console with Core_log (no format specifiers) * move test/printf to test/log * remove `printf()` tests from the log test * check for exact match of the log test output base-fiasco: * remove unused Fiasco::print_l4_threadid function base-nova: * remove unused hexdump utility from core base-hw: * remove unused Kernel::Thread::_print_* debug utilities * always print resource summary of core during startup * remove Kernel::Ipc_node::pd_label (not used anymore) base*: * Turn `printf`,`PWRN`, etc. calls into their log equivalents Ref #1987 Fix #2119
This commit is contained in:
committed by
Christian Helmuth
parent
e864e84c5a
commit
2a2e5c2df4
@ -13,7 +13,7 @@
|
||||
|
||||
/* Genode includes */
|
||||
#include <base/component.h>
|
||||
#include <base/printf.h>
|
||||
#include <base/log.h>
|
||||
|
||||
/* local includes */
|
||||
#include "testlib.h"
|
||||
@ -28,7 +28,7 @@ struct Testapp_testclass
|
||||
{
|
||||
Testapp_testclass()
|
||||
{
|
||||
Genode::printf("Global static constructor of Genode application called\n");
|
||||
Genode::log("Global static constructor of Genode application called");
|
||||
}
|
||||
|
||||
void dummy() { }
|
||||
@ -52,7 +52,7 @@ Genode::size_t Component::stack_size() { return 16*1024*sizeof(long); }
|
||||
*/
|
||||
void Component::construct(Genode::Env &env)
|
||||
{
|
||||
printf("--- lx_hybrid global static constructor test ---\n");
|
||||
log("--- lx_hybrid global static constructor test ---");
|
||||
|
||||
/*
|
||||
* Call a dummy function on each test object to make sure that the
|
||||
@ -61,7 +61,7 @@ void Component::construct(Genode::Env &env)
|
||||
testlib_testobject.dummy();
|
||||
testapp_testobject.dummy();
|
||||
|
||||
printf("--- returning from main ---\n");
|
||||
log("--- returning from main ---");
|
||||
exit_status = 0;
|
||||
env.ep().schedule_suspend(exit_on_suspended, nullptr);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
/* Genode includes */
|
||||
#include <base/component.h>
|
||||
#include <base/printf.h>
|
||||
#include <base/log.h>
|
||||
|
||||
/* Linux includes */
|
||||
#include <stdlib.h>
|
||||
@ -35,16 +35,16 @@ Genode::size_t Component::stack_size() { return 16*1024*sizeof(long); }
|
||||
*/
|
||||
void Component::construct(Genode::Env &env)
|
||||
{
|
||||
printf("--- lx_hybrid exception test ---\n");
|
||||
log("--- lx_hybrid exception test ---");
|
||||
|
||||
try {
|
||||
printf("Throwing Test_exception\n");
|
||||
log("Throwing Test_exception");
|
||||
throw Test_exception();
|
||||
} catch (Test_exception) {
|
||||
printf("Caught Test_exception\n");
|
||||
log("Caught Test_exception");
|
||||
}
|
||||
|
||||
printf("--- returning from main ---\n");
|
||||
log("--- returning from main ---");
|
||||
exit_status = 0;
|
||||
env.ep().schedule_suspend(exit_on_suspended, nullptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user