diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-09-19 01:14:18 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-19 01:14:18 +0200 |
| commit | 0a90ae094f90ae8c73fb6766ddb31d6bbcc31f5a (patch) | |
| tree | 4bf8978f6f9c9512628eac1cd17829981ff26262 /src | |
| parent | 8a4a2f25cac0c58aac1d4267facab20e5ec3b57f (diff) | |
Debugging for GH #21.
Diffstat (limited to 'src')
| -rw-r--r-- | src/KM_fileio.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index 49cc378..d31c705 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -1097,8 +1097,12 @@ Kumu::FileWriter::Write(const byte_t* buf, ui32_t buf_len, ui32_t* bytes_written Kumu::Result_t Kumu::FileReader::OpenRead(const std::string& filename) const { + printf("-> Kumu::FileReader::OpenRead %s\n", filename.c_str()); const_cast<FileReader*>(this)->m_Filename = filename; const_cast<FileReader*>(this)->m_Handle = open(filename.c_str(), O_RDONLY, 0); + if (m_Handle == -1L) { + printf("open failed with %d\n", errno); + } return ( m_Handle == -1L ) ? RESULT_FILEOPEN : RESULT_OK; } |
