Log Colors
Added colored output to the logs. Also added the logs to zone for outputting errors using our logger instead of printf().
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include <stdio.h> // printf()
|
||||
#include <stdlib.h> // malloc() free()
|
||||
#include <string.h>
|
||||
#include <string.h> // memset()
|
||||
|
||||
#include "../defines.h"
|
||||
#include "../logger/logger.h"
|
||||
#include "zone.h"
|
||||
|
||||
typedef struct ZoneHeader {
|
||||
@@ -32,7 +33,7 @@ void *zoneAlloc(Zone *zone, size_t sizeBytes) {
|
||||
ZoneHeader *zone_header = (ZoneHeader *)zone - sizeof(ZoneHeader);
|
||||
|
||||
if (zone_header->cur_size + sizeBytes > zone_header->capacity) {
|
||||
printf("Could not allocate, not enough space.");
|
||||
QERROR("Could not allocate, not enough space.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user