log interrupts and recv'd data

This commit is contained in:
Conor Patrick
2019-01-07 21:19:45 -05:00
parent aa978abfc7
commit 78c40976c3
4 changed files with 201 additions and 49 deletions

View File

@@ -83,7 +83,7 @@ void LOG(uint32_t tag, const char * filename, int num, const char * fmt, ...)
{
if (tag & tagtable[i].tagn)
{
if (tagtable[i].tag[0]) printf("[%s] ", tagtable[i].tag);
if (tagtable[i].tag[0] && !(tag & TAG_NO_TAG)) printf("[%s] ", tagtable[i].tag);
i = 0;
break;
}

View File

@@ -59,6 +59,7 @@ typedef enum
TAG_EXT = (1 << 17),
TAG_NFC = (1 << 18),
TAG_NO_TAG = (1<<30),
TAG_FILENO = (1<<31)
} LOG_TAG;