]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Return EINVAL instead of ESIZE in order to obey the LogAppend.append interface. The...
authorrazvanm <razvanm>
Wed, 23 Dec 2009 02:28:47 +0000 (02:28 +0000)
committerrazvanm <razvanm>
Wed, 23 Dec 2009 02:28:47 +0000 (02:28 +0000)
tos/chips/stm25p/Stm25pLogP.nc

index 35c1cb701acbc1f4527a2f2810402b84dc798717..e454de79d88c27d03d5b8dafb4aca2e937632343 100644 (file)
@@ -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 )