| 14 |
* * |
* * |
| 15 |
***************************************************************************/ |
***************************************************************************/ |
| 16 |
|
|
|
#include "memory_pool.h" |
|
| 17 |
#include "log.h" |
#include "log.h" |
| 18 |
|
#include "memory_pool.h" |
| 19 |
#include <stdio.h> |
#include <stdio.h> |
|
#include <unistd.h> |
|
| 20 |
#include <string.h> |
#include <string.h> |
| 21 |
|
#include <unistd.h> |
| 22 |
|
|
| 23 |
#define NODE_SIZE 1023 |
#define NODE_SIZE 1023 |
| 24 |
#define NODE_PER_CHUNK 1000 |
#define NODE_PER_CHUNK 1000 |
| 84 |
{ |
{ |
| 85 |
for (k = (int)sizeof(void *); k < NODE_SIZE; k++) |
for (k = (int)sizeof(void *); k < NODE_SIZE; k++) |
| 86 |
{ |
{ |
| 87 |
if ((*(char *)(p_nodes[i] + k)) != 'A' + j - 1) |
if ((*((char *)p_nodes[i] + k)) != 'A' + j - 1) |
| 88 |
{ |
{ |
| 89 |
printf("Value of node[%d] at offset %d not equal to value set %c\n", |
printf("Value of node[%d] at offset %d not equal to value set %c\n", |
| 90 |
i, k, 'A' + j - 1); |
i, k, 'A' + j - 1); |