mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 23:42:05 +08:00
capnp:Text::Reader: use implicit conversion from string (#21980)
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