mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
capnp:Text::Reader: use implicit conversion from string (#21980)
old-commit-hash: c6a34dd9f7ea1798a54883070eb548c17addbb12
This commit is contained in:
@@ -30,8 +30,7 @@ static kj::Array<capnp::word> build_boot_log() {
|
||||
}
|
||||
}
|
||||
|
||||
std::string launchLog = util::read_file("/tmp/launch_log");
|
||||
boot.setLaunchLog(capnp::Text::Reader(launchLog.data(), launchLog.size()));
|
||||
boot.setLaunchLog(util::read_file("/tmp/launch_log"));
|
||||
return capnp::messageToFlatArray(msg);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ kj::Array<capnp::word> logger_build_init_data() {
|
||||
init.setDeviceType(cereal::InitData::DeviceType::PC);
|
||||
}
|
||||
|
||||
init.setVersion(capnp::Text::Reader(COMMA_VERSION));
|
||||
init.setVersion(COMMA_VERSION);
|
||||
|
||||
std::ifstream cmdline_stream("/proc/cmdline");
|
||||
std::vector<std::string> kernel_args;
|
||||
|
||||
Reference in New Issue
Block a user