mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-22 13:02:56 +01:00
blinktree: Do not call std::cout outside of Libc::with_libc.
This commit is contained in:
@@ -180,12 +180,14 @@ std::tuple<Benchmark *, std::uint16_t, bool> create_benchmark(Libc::Env &env, in
|
||||
}
|
||||
|
||||
void Libc::Component::construct(Libc::Env &env) {
|
||||
std::cout << "Starting B-link tree benchmark" << std::endl;
|
||||
|
||||
mx::system::Environment::set_env(&env);
|
||||
|
||||
char *args[] = {"blinktree", "1:4", "-o /dev/log"};
|
||||
char *args[] = {"blinktree_benchmark", "1:4", "-o /dev/log"};
|
||||
|
||||
Libc::with_libc([&]()
|
||||
{ bt_main(env, 3, args); });
|
||||
{
|
||||
std::cout << "Starting B-link tree benchmark" << std::endl;
|
||||
bt_main(env, 3, args);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user