Skip to content

Commit

Permalink
Update iqfile_source_impl.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
taclane authored Sep 28, 2024
1 parent 84f579a commit bb6e02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/op25_repeater/lib/iqfile_source_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ void iqfile_source_impl::open(const char* filename,
}

if ((d_new_fp = fopen(filename, "rb")) == NULL) {
GR_LOG_ERROR(d_logger, boost::format("%s: %s") % filename % strerror(errno));
GR_LOG_ERROR(d_logger, (boost::format("%s: %s") % filename % strerror(errno)).str());
throw std::runtime_error("can't open file");
}

struct GR_STAT st;

if (GR_FSTAT(GR_FILENO(d_new_fp), &st)) {
GR_LOG_ERROR(d_logger, boost::format("%s: %s") % filename % strerror(errno));
GR_LOG_ERROR(d_logger, (boost::format("%s: %s") % filename % strerror(errno)).str());
throw std::runtime_error("can't fstat file");
}
if (S_ISREG(st.st_mode)) {
Expand Down

0 comments on commit bb6e02f

Please sign in to comment.