From: razvanm Date: Wed, 23 Dec 2009 02:28:47 +0000 (+0000) Subject: Return EINVAL instead of ESIZE in order to obey the LogAppend.append interface. The... X-Git-Tag: rc_6_tinyos_2_1_1~85 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=a0827cb169ae23fc39cb82fcb0c33b2c52b4eabc Return EINVAL instead of ESIZE in order to obey the LogAppend.append interface. The bug was reported by Maria Kazandjieva. --- diff --git a/tos/chips/stm25p/Stm25pLogP.nc b/tos/chips/stm25p/Stm25pLogP.nc index 35c1cb70..e454de79 100644 --- a/tos/chips/stm25p/Stm25pLogP.nc +++ b/tos/chips/stm25p/Stm25pLogP.nc @@ -161,7 +161,7 @@ implementation { // don't allow appends larger than maximum record size if ( len > MAX_RECORD_SIZE ) - return ESIZE; + return EINVAL; // move to next block if current block doesn't have enough space if ( sizeof( m_header ) + len > bytes_left )