projects
/
asdcplib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59fbed4
)
Added debug-mode test of ignored return value
author
jhurst
<jhurst@cinecert.com>
Tue, 2 Jul 2019 16:45:21 +0000
(11:45 -0500)
committer
jhurst
<jhurst@cinecert.com>
Tue, 2 Jul 2019 16:45:21 +0000
(11:45 -0500)
src/KM_log.cpp
patch
|
blob
|
history
diff --git
a/src/KM_log.cpp
b/src/KM_log.cpp
index 182d91e6ee2cb2730230cc39672e0d5ad8fbd562..d820dba50df002aaf82e652c664d765e829dd386 100755
(executable)
--- a/
src/KM_log.cpp
+++ b/
src/KM_log.cpp
@@
-151,7
+151,8
@@
Kumu::StreamLogSink::WriteEntry(const LogEntry& Entry)
if ( Entry.TestFilter(m_filter) )
{
Entry.CreateStringWithOptions(buf, m_options);
if ( Entry.TestFilter(m_filter) )
{
Entry.CreateStringWithOptions(buf, m_options);
- write(m_fd, buf.c_str(), buf.size());
+ ssize_t n = write(m_fd, buf.c_str(), buf.size());
+ assert(n==buf.size());
}
}
}
}