From: jhurst Date: Tue, 2 Jul 2019 16:45:21 +0000 (-0500) Subject: Added debug-mode test of ignored return value X-Git-Tag: rel_2_10_34~2 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=1f46216c14f3582f47b290c5ab4dd0c9a02b90f4;hp=59fbed4c8acbc1c5c109a1813dbdde429908aaf0;p=asdcplib.git Added debug-mode test of ignored return value --- diff --git a/src/KM_log.cpp b/src/KM_log.cpp index 182d91e..d820dba 100755 --- 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()); } }