4 #include <heapManager.h>
6 #include "debug_util.h"
8 static const char undefined
[] = "undefined";
10 static const char *HeapStatusStr
[] = {
11 "DoNotExistYet", "LocalCache", "TempMem", "SystemMem", "DoNotExistAnymore","S3Resume"
14 /* This function has to match with enumeration of XXXX defined
15 * inside heapManager.h header file.
17 const char *heap_status_name(UINT8 HeapStatus
)
19 if ((HeapStatus
< HEAP_DO_NOT_EXIST_YET
) || (HeapStatus
> HEAP_S3_RESUME
))
22 int index
= HeapStatus
- HEAP_DO_NOT_EXIST_YET
;
23 return HeapStatusStr
[index
];