mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
cbe tools: log less by default
Previously unconditional calls to Genode::log in cbe init and the cbe trust anchor VFS plugin were made dependent on a verbosity flag that is set to "false" by default. Ref #4032
This commit is contained in:
parent
8dfa586462
commit
3e375e4315
@ -27,6 +27,7 @@
|
||||
#include <cbe/init/configuration.h>
|
||||
#include <cbe/vfs/trust_anchor_vfs.h>
|
||||
|
||||
enum { VERBOSE = 0 };
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
@ -61,6 +62,7 @@ class Main
|
||||
node.attribute_value("trust_anchor_dir", String_path());
|
||||
|
||||
if (!path.valid()) {
|
||||
|
||||
error("missing mandatory 'trust_anchor_dir' config attribute");
|
||||
struct Missing_config_attribute { };
|
||||
throw Missing_config_attribute();
|
||||
@ -196,7 +198,9 @@ class Main
|
||||
if (req.valid()) {
|
||||
_cbe_init.drop_completed_client_request(req);
|
||||
if (req.success()) {
|
||||
log("CBE initialization finished");
|
||||
if (VERBOSE) {
|
||||
log("CBE initialization finished");
|
||||
}
|
||||
_env.parent().exit(0);
|
||||
} else {
|
||||
error("request was not successful");;
|
||||
|
@ -25,7 +25,6 @@
|
||||
/* CBE includes */
|
||||
#include <cbe/vfs/io_job.h>
|
||||
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
class Main
|
||||
@ -215,9 +214,6 @@ class Main
|
||||
if (result.complete) {
|
||||
_init_file->drop_io_job();
|
||||
_init_file.destruct();
|
||||
|
||||
Genode::log("Initialization finished successfully");
|
||||
|
||||
_env.parent().exit(result.success ? 0 : 1);
|
||||
return;
|
||||
}
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
enum { PRIVATE_KEY_SIZE = 32 };
|
||||
enum { PASSPHRASE_HASH_SIZE = 32 };
|
||||
enum { VERBOSE = 0 };
|
||||
|
||||
|
||||
namespace Vfs_cbe_trust_anchor {
|
||||
@ -987,7 +988,9 @@ class Trust_anchor
|
||||
}
|
||||
}
|
||||
else {
|
||||
Genode::log("No key file found, TA not initialized");
|
||||
if (VERBOSE) {
|
||||
Genode::log("No key file found, TA not initialized");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user