diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2020-04-11 01:04:25 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-04-13 15:55:41 +0200 |
commit | 95178211eb87d6bf40d51210cf501e6e840863fe (patch) | |
tree | f5b78778291f977ea20d50947086e108bd5a36b5 /gr-blocks/lib/file_meta_sink_impl.cc | |
parent | 7a203ad0481aea3820ea60568402b94cff83ab1d (diff) |
blocks: replace stderr logging by calls to GR's logging facilties
Diffstat (limited to 'gr-blocks/lib/file_meta_sink_impl.cc')
-rw-r--r-- | gr-blocks/lib/file_meta_sink_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/file_meta_sink_impl.cc b/gr-blocks/lib/file_meta_sink_impl.cc index 783e18de81..24ae787747 100644 --- a/gr-blocks/lib/file_meta_sink_impl.cc +++ b/gr-blocks/lib/file_meta_sink_impl.cc @@ -155,7 +155,7 @@ bool file_meta_sink_impl::_open(FILE** fp, const char* filename) if ((fd = ::open(filename, O_WRONLY | O_CREAT | O_TRUNC | OUR_O_LARGEFILE | OUR_O_BINARY, 0664)) < 0) { - perror(filename); + GR_LOG_ERROR(d_logger, boost::format("%s: %s") % filename % strerror(errno)); return false; } @@ -165,7 +165,7 @@ bool file_meta_sink_impl::_open(FILE** fp, const char* filename) } if ((*fp = fdopen(fd, "wb")) == NULL) { - perror(filename); + GR_LOG_ERROR(d_logger, boost::format("%s: %s") % filename % strerror(errno)); ::close(fd); // don't leak file descriptor if fdopen fails. } |