|
|
@ -70,7 +70,9 @@ kj::Array<capnp::word> logger_build_init_data() { |
|
|
|
"df -h", // usage for all filesystems
|
|
|
|
"df -h", // usage for all filesystems
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
auto commands = init.initCommands().initEntries(log_commands.size()); |
|
|
|
auto hw_logs = Hardware::get_init_logs(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
auto commands = init.initCommands().initEntries(log_commands.size() + hw_logs.size()); |
|
|
|
for (int i = 0; i < log_commands.size(); i++) { |
|
|
|
for (int i = 0; i < log_commands.size(); i++) { |
|
|
|
auto lentry = commands[i]; |
|
|
|
auto lentry = commands[i]; |
|
|
|
|
|
|
|
|
|
|
@ -80,6 +82,14 @@ kj::Array<capnp::word> logger_build_init_data() { |
|
|
|
lentry.setValue(capnp::Data::Reader((const kj::byte*)result.data(), result.size())); |
|
|
|
lentry.setValue(capnp::Data::Reader((const kj::byte*)result.data(), result.size())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int i = log_commands.size(); |
|
|
|
|
|
|
|
for (auto [key, value] : hw_logs) { |
|
|
|
|
|
|
|
auto lentry = commands[i]; |
|
|
|
|
|
|
|
lentry.setKey(key); |
|
|
|
|
|
|
|
lentry.setValue(capnp::Data::Reader((const kj::byte*)value.data(), value.size())); |
|
|
|
|
|
|
|
i++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return capnp::messageToFlatArray(msg); |
|
|
|
return capnp::messageToFlatArray(msg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|