diff options
Diffstat (limited to 'gr-blocks/lib/file_meta_source_impl.cc')
-rw-r--r-- | gr-blocks/lib/file_meta_source_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-blocks/lib/file_meta_source_impl.cc b/gr-blocks/lib/file_meta_source_impl.cc index 5f114a3182..e5d7f5a46a 100644 --- a/gr-blocks/lib/file_meta_source_impl.cc +++ b/gr-blocks/lib/file_meta_source_impl.cc @@ -263,7 +263,7 @@ bool file_meta_source_impl::_open(FILE** fp, const char* filename) int fd; if ((fd = ::open(filename, O_RDONLY | OUR_O_LARGEFILE | OUR_O_BINARY)) < 0) { - perror(filename); + GR_LOG_ERROR(d_logger, boost::format("%s: %s") % filename % strerror(errno)); return false; } @@ -273,7 +273,7 @@ bool file_meta_source_impl::_open(FILE** fp, const char* filename) } if ((*fp = fdopen(fd, "rb")) == 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. } |