acassis commented on a change in pull request #2355:
URL: https://github.com/apache/incubator-nuttx/pull/2355#discussion_r528325166



##########
File path: arch/xtensa/src/esp32/esp32_himem.c
##########
@@ -320,7 +320,7 @@ static bool allocate_blocks(int count, uint16_t *blocks_out)
       for (i = 0; i < count; i++)
         {
           g_ram_descriptor[blocks_out[i]].is_alloced = true;
-          g_ram_descriptor[blocks_out[i]].is_mapped  = false;
+          assert(g_ram_descriptor[blocks_out[i]].is_mapped  == false);

Review comment:
       assert is defined to DEBUGASSERT when CONFIG_DEBUG_ASSERTIONS is 
defined, otherwise it is defined to do nothing, please see include/assert.h for 
reference.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to