forked from Imagelibrary/rtems
Made real body of _Heap_Walk conditional on RTEMS_DEBUG. This is necessary
to be able to build a system without requiring printf.
This commit is contained in:
@@ -418,6 +418,18 @@ boolean _Heap_Free(
|
|||||||
* Output parameters: NONE
|
* Output parameters: NONE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef RTEMS_DEBUG
|
||||||
|
|
||||||
|
void _Heap_Walk(
|
||||||
|
Heap_Control *the_heap,
|
||||||
|
int source,
|
||||||
|
boolean do_dump
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@@ -522,3 +534,4 @@ void _Heap_Walk(
|
|||||||
if (error)
|
if (error)
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -418,6 +418,18 @@ boolean _Heap_Free(
|
|||||||
* Output parameters: NONE
|
* Output parameters: NONE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef RTEMS_DEBUG
|
||||||
|
|
||||||
|
void _Heap_Walk(
|
||||||
|
Heap_Control *the_heap,
|
||||||
|
int source,
|
||||||
|
boolean do_dump
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
@@ -522,3 +534,4 @@ void _Heap_Walk(
|
|||||||
if (error)
|
if (error)
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user