From a0827cb169ae23fc39cb82fcb0c33b2c52b4eabc Mon Sep 17 00:00:00 2001 From: razvanm Date: Wed, 23 Dec 2009 02:28:47 +0000 Subject: [PATCH] Return EINVAL instead of ESIZE in order to obey the LogAppend.append interface. The bug was reported by Maria Kazandjieva. --- tos/chips/stm25p/Stm25pLogP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2