This commit is contained in:
Conor Patrick
2018-05-18 11:47:17 -04:00
parent 6ea2a3bf60
commit 8932dcb624
2 changed files with 7 additions and 19 deletions

7
log.c
View File

@@ -1,4 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "log.h"
#include "util.h"
@@ -38,9 +39,15 @@ void LOG(uint32_t tag, const char * filename, int num, const char * fmt, ...)
if (tag & tagtable[i].tagn)
{
printf("[%s] ", tagtable[i].tag);
i = 0;
break;
}
}
if (i != 0)
{
printf("INVALID LOG TAG\n");
exit(1);
}
#ifdef ENABLE_FILE_LOGGING
if (tag & TAG_FILENO)
{