1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-02-22 05:50:09 +00:00

Use ofstream instead of ifstream where appropriate

This commit is contained in:
Carles Fernandez 2022-12-11 13:31:24 +01:00
parent 79d6a3f166
commit bbada7f811
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -111,11 +111,11 @@ Fpga_buffer_monitor::Fpga_buffer_monitor(const std::string &device_name,
{
try
{
d_dump_file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
d_dump_file.exceptions(std::ofstream::failbit | std::ofstream::badbit);
d_dump_file.open(dump_filename_.c_str(), std::ios::out | std::ios::binary);
LOG(INFO) << "FPGA buffer monitor dump enabled. Log file: " << dump_filename_.c_str();
}
catch (const std::ifstream::failure &e)
catch (const std::ofstream::failure &e)
{
LOG(WARNING) << "Exception opening FPGA buffer monitor dump file " << e.what();
}