projects
/
asdcplib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added debug-mode test of ignored return value
[asdcplib.git]
/
src
/
KM_log.cpp
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);
- write(m_fd, buf.c_str(), buf.size());
+ ssize_t n = write(m_fd, buf.c_str(), buf.size());
+ assert(n==buf.size());
}
}