capnp:Text::Reader: use implicit conversion from string (#21980)

old-commit-hash: c6a34dd9f7
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent cf7c627452
commit f65c7e7418
  1. 3
      selfdrive/loggerd/bootlog.cc
  2. 2
      selfdrive/loggerd/logger.cc

@ -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;

Loading…
Cancel
Save